File tree 1 file changed +6
-4
lines changed
Cabal/src/Distribution/Simple
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -163,14 +163,16 @@ configure verbosity hcPath hcPkgPath conf0 = do
163
163
(userMaybeSpecifyPath " ghc" hcPath conf0)
164
164
let implInfo = ghcVersionImplInfo ghcVersion
165
165
166
- -- Cabal currently supports ghc >= 7.0.1 && < 9.14
167
- -- ... and the following odd development version
168
- unless (ghcVersion < mkVersion [ 9 , 14 ] ) $
166
+ -- Cabal currently supports GHC less than `maxGhcVersion`
167
+ let maxGhcVersion = mkVersion [ 9 , 14 ]
168
+ unless (ghcVersion < maxGhcVersion ) $
169
169
warn verbosity $
170
170
" Unknown/unsupported 'ghc' version detected "
171
171
++ " (Cabal "
172
172
++ prettyShow cabalVersion
173
- ++ " supports 'ghc' version < 9.14): "
173
+ ++ " supports 'ghc' version < "
174
+ ++ prettyShow maxGhcVersion
175
+ ++ " ): "
174
176
++ programPath ghcProg
175
177
++ " is version "
176
178
++ prettyShow ghcVersion
You can’t perform that action at this time.
0 commit comments