Skip to content

Commit

Permalink
Minor refactor: spell out max supported GHC once (haskell#10663)
Browse files Browse the repository at this point in the history
* Minor refactor: spell out max supported GHC once

* fixup!
  • Loading branch information
ulysses4ever authored Dec 25, 2024
1 parent 5ad146c commit 3bbc15a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Cabal/src/Distribution/Simple/GHC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,16 @@ configure verbosity hcPath hcPkgPath conf0 = do
(userMaybeSpecifyPath "ghc" hcPath conf0)
let implInfo = ghcVersionImplInfo ghcVersion

-- Cabal currently supports ghc >= 7.0.1 && < 9.14
-- ... and the following odd development version
unless (ghcVersion < mkVersion [9, 14]) $
-- Cabal currently supports GHC less than `maxGhcVersion`
let maxGhcVersion = mkVersion [9, 14]
unless (ghcVersion < maxGhcVersion) $
warn verbosity $
"Unknown/unsupported 'ghc' version detected "
++ "(Cabal "
++ prettyShow cabalVersion
++ " supports 'ghc' version < 9.14): "
++ " supports 'ghc' version < "
++ prettyShow maxGhcVersion
++ "): "
++ programPath ghcProg
++ " is version "
++ prettyShow ghcVersion
Expand Down

0 comments on commit 3bbc15a

Please sign in to comment.