Commit a89d9851 authored by Oleg Grenrus's avatar Oleg Grenrus

Resolve #6905: Update setupMinCabalVersionConstraint and D.S.GHC

parent ad46306f
......@@ -137,7 +137,7 @@ configure verbosity hcPath hcPkgPath conf0 = do
let implInfo = ghcVersionImplInfo ghcVersion
-- Cabal currently supports ghc >= 7.0.1 && < 8.12
unless (ghcVersion < mkVersion [8,12]) $
unless (ghcVersion < mkVersion [8,14]) $
warn verbosity $
"Unknown/unsupported 'ghc' version detected "
++ "(Cabal " ++ prettyShow cabalVersion ++ " supports 'ghc' version < 8.12): "
......
......@@ -1113,6 +1113,7 @@ planPackages verbosity comp platform solver SolverSettings{..}
-- TODO: long-term, this compatibility matrix should be
-- stored as a field inside 'Distribution.Compiler.Compiler'
setupMinCabalVersionConstraint
| isGHC, compVer >= mkVersion [8,12] = mkVersion [3,4]
| isGHC, compVer >= mkVersion [8,10] = mkVersion [3,2]
| isGHC, compVer >= mkVersion [8,8] = mkVersion [3,0]
| isGHC, compVer >= mkVersion [8,6] = mkVersion [2,4]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment