Skip to content

Commit da9e541

Browse files
committed
Update setupMinCabalVersionConstraint for GHC-8.8
1 parent 2387ebb commit da9e541

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cabal-install/Distribution/Client/ProjectPlanning.hs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,7 @@ planPackages verbosity comp platform solver SolverSettings{..}
10771077
-- respective major Cabal version bundled with the respective GHC
10781078
-- release).
10791079
--
1080+
-- GHC 8.8 needs Cabal >= 3.0
10801081
-- GHC 8.6 needs Cabal >= 2.4
10811082
-- GHC 8.4 needs Cabal >= 2.2
10821083
-- GHC 8.2 needs Cabal >= 2.0
@@ -1089,11 +1090,8 @@ planPackages verbosity comp platform solver SolverSettings{..}
10891090
-- TODO: long-term, this compatibility matrix should be
10901091
-- stored as a field inside 'Distribution.Compiler.Compiler'
10911092
setupMinCabalVersionConstraint
1092-
| isGHC, compVer >= mkVersion [8,6,1] = mkVersion [2,4]
1093-
-- GHC 8.6alpha2 (GHC 8.6.0.20180714) still shipped with a
1094-
-- devel snapshot of Cabal-2.3.0.0; the rule below can be
1095-
-- dropped at some point
1096-
| isGHC, compVer >= mkVersion [8,6] = mkVersion [2,3]
1093+
| isGHC, compVer >= mkVersion [8,8] = mkVersion [3,0]
1094+
| isGHC, compVer >= mkVersion [8,6] = mkVersion [2,4]
10971095
| isGHC, compVer >= mkVersion [8,4] = mkVersion [2,2]
10981096
| isGHC, compVer >= mkVersion [8,2] = mkVersion [2,0]
10991097
| isGHC, compVer >= mkVersion [8,0] = mkVersion [1,24]

0 commit comments

Comments
 (0)