Skip to content

Commit eab532c

Browse files
authored
Merge pull request #8169 from Mikolaj/ghc-version-updates
Update cabal to officially support GHC 9.2
2 parents 100d380 + a8489a4 commit eab532c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cabal/src/Distribution/Simple/Program/GHC.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ normaliseGhcArgs (Just ghcVersion) PackageDescription{..} ghcArgs
5454
supportedGHCVersions :: VersionRange
5555
supportedGHCVersions = intersectVersionRanges
5656
(orLaterVersion (mkVersion [8,0]))
57-
(earlierVersion (mkVersion [9,1]))
57+
(earlierVersion (mkVersion [9,3]))
5858

5959
from :: Monoid m => [Int] -> m -> m
6060
from version flags

cabal-install/src/Distribution/Client/ProjectPlanning.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,7 @@ planPackages verbosity comp platform solver SolverSettings{..}
11811181
-- respective major Cabal version bundled with the respective GHC
11821182
-- release).
11831183
--
1184+
-- GHC 9.2 needs Cabal >= 3.6
11841185
-- GHC 9.0 needs Cabal >= 3.4
11851186
-- GHC 8.10 needs Cabal >= 3.2
11861187
-- GHC 8.8 needs Cabal >= 3.0
@@ -1196,6 +1197,7 @@ planPackages verbosity comp platform solver SolverSettings{..}
11961197
-- TODO: long-term, this compatibility matrix should be
11971198
-- stored as a field inside 'Distribution.Compiler.Compiler'
11981199
setupMinCabalVersionConstraint
1200+
| isGHC, compVer >= mkVersion [9,2] = mkVersion [3,6]
11991201
| isGHC, compVer >= mkVersion [9,0] = mkVersion [3,4]
12001202
| isGHC, compVer >= mkVersion [8,10] = mkVersion [3,2]
12011203
| isGHC, compVer >= mkVersion [8,8] = mkVersion [3,0]

0 commit comments

Comments
 (0)