Skip to content

Commit d5a49d3

Browse files
pull ghc-9.8.3 from the release branch (#568)
1 parent 5a6a5d0 commit d5a49d3

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

CI.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ buildDists ghcFlavor noGhcCheckout noBuilds versionSuffix = do
496496
branch = \case
497497
Ghc9121 -> "ghc-9.12"
498498
Ghc9101 -> "ghc-9.10.1-release"
499-
Ghc983 -> "ghc-9.8"
499+
Ghc983 -> "ghc-9.8.3-release"
500500
Ghc982 -> "ghc-9.8.2-release"
501501
Ghc981 -> "ghc-9.8.1-release"
502502
Ghc966 -> "ghc-9.6.6-release"

ghc-lib-gen/src/Ghclibgen.hs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module Ghclibgen
2727
applyPatchStage,
2828
applyPatchNoMonoLocalBinds,
2929
applyPatchCmmParseNoImplicitPrelude,
30+
applyPatchCompilerGHCUnitTypes,
3031
applyPatchHadrianCabalProject,
3132
applyPatchGhcInternalEventWindowsHsc,
3233
applyPatchTemplateHaskellLanguageHaskellTHSyntax,
@@ -1060,6 +1061,15 @@ applyPatchHadrianCabalProject _ = do
10601061
cabalProject = "hadrian" </> "cabal.project"
10611062
cabalProjectFreeze = cabalProject ++ ".freeze"
10621063

1064+
applyPatchCompilerGHCUnitTypes :: GhcFlavor -> IO ()
1065+
applyPatchCompilerGHCUnitTypes ghcFlavor = do
1066+
when (ghcFlavor == Ghc9101) $ do
1067+
writeFile "compiler/GHC/Unit/Types.hs"
1068+
. replace
1069+
"import Control.DeepSeq"
1070+
"import Control.DeepSeq (NFData(..))"
1071+
=<< readFile' "compiler/GHC/Unit/Types.hs"
1072+
10631073
-- Data type representing an approximately parsed Cabal file.
10641074
data Cabal = Cabal
10651075
{ cabalDir :: FilePath, -- the directory this file exists in
@@ -1175,7 +1185,8 @@ baseBounds = \case
11751185
-- base-4.19.0.0, ghc-prim-0.11.0
11761186
Ghc981 -> "base >= 4.17 && < 4.19.1" -- [ghc-9.4.1, ghc-9.8.2)
11771187
-- base-4.19.1.0
1178-
Ghc982 -> "base >= 4.17 && < 4.20" -- [ghc-9.4.1, ghc-9.10.1)
1188+
Ghc982 -> "base >= 4.17 && < 4.19.2" -- [ghc-9.4.1, ghc-9.10.1)
1189+
-- base-4.19.2.0
11791190
Ghc983 -> "base >= 4.17 && < 4.20" -- [ghc-9.4.1, ghc-9.10.1)
11801191
-- base-4.20.0.0
11811192
Ghc9101 -> "base >= 4.18 && < 4.21" -- [ghc-9.6.1, ghc-9.12.1)

ghc-lib-gen/src/Main.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ ghclibgen (GhclibgenOpts root _patches target ghcFlavor skipInit cppOpts _resolv
3232
applyPatchHaddockHs ghcFlavor
3333
applyPatchNoMonoLocalBinds ghcFlavor
3434
applyPatchTemplateHaskellLanguageHaskellTHSyntax ghcFlavor
35+
applyPatchCompilerGHCUnitTypes ghcFlavor
3536
generateGhcLibParserCabal ghcFlavor cppOpts
3637
Ghclib -> do
3738
when withInit $ init ghcFlavor

0 commit comments

Comments
 (0)