Skip to content

Commit ea5ec57

Browse files
ghc-9.8.5 support (#585)
1 parent f8f24af commit ea5ec57

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

CI.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ data GhcFlavor
4848
| GhcMaster String
4949
| Ghc9121
5050
| Ghc9101
51+
| Ghc985
5152
| Ghc984
5253
| Ghc983
5354
| Ghc982
@@ -106,6 +107,7 @@ ghcFlavorOpt :: GhcFlavor -> String
106107
ghcFlavorOpt = \case
107108
Ghc9121 -> "--ghc-flavor ghc-9.12.1"
108109
Ghc9101 -> "--ghc-flavor ghc-9.10.1"
110+
Ghc985 -> "--ghc-flavor ghc-9.8.5"
109111
Ghc984 -> "--ghc-flavor ghc-9.8.4"
110112
Ghc983 -> "--ghc-flavor ghc-9.8.3"
111113
Ghc982 -> "--ghc-flavor ghc-9.8.2"
@@ -171,6 +173,7 @@ genVersionStr flavor suffix =
171173
GhcMaster _ -> "0"
172174
Ghc9121 -> "9.12.1"
173175
Ghc9101 -> "9.10.1"
176+
Ghc985 -> "9.8.5"
174177
Ghc984 -> "9.8.4"
175178
Ghc983 -> "9.8.3"
176179
Ghc982 -> "9.8.2"
@@ -240,6 +243,7 @@ parseOptions =
240243
readFlavor = Opts.eitherReader $ \case
241244
"ghc-9.12.1" -> Right Ghc9121
242245
"ghc-9.10.1" -> Right Ghc9101
246+
"ghc-9.8.5" -> Right Ghc985
243247
"ghc-9.8.4" -> Right Ghc984
244248
"ghc-9.8.3" -> Right Ghc983
245249
"ghc-9.8.2" -> Right Ghc982
@@ -510,6 +514,7 @@ buildDists ghcFlavor noGhcCheckout noBuilds versionSuffix = do
510514
branch = \case
511515
Ghc9121 -> "ghc-9.12.1-release"
512516
Ghc9101 -> "ghc-9.10.1-release"
517+
Ghc985 -> "ghc-9.8"
513518
Ghc984 -> "ghc-9.8.4-release"
514519
Ghc983 -> "ghc-9.8.3-release"
515520
Ghc982 -> "ghc-9.8.2-release"

examples/ghc-lib-test-utils/src/TestUtils.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ data GhcVersion
5959
| Ghc982
6060
| Ghc983
6161
| Ghc984
62+
| Ghc985
6263
| Ghc9101
6364
| Ghc9121
6465
| GhcMaster
@@ -74,6 +75,7 @@ showGhcVersion :: GhcVersion -> String
7475
showGhcVersion = \case
7576
Ghc9121 -> "ghc-9.12.1"
7677
Ghc9101 -> "ghc-9.10.1"
78+
Ghc985 -> "ghc-9.8.5"
7779
Ghc984 -> "ghc-9.8.4"
7880
Ghc983 -> "ghc-9.8.3"
7981
Ghc982 -> "ghc-9.8.2"
@@ -132,6 +134,7 @@ readFlavor =
132134
-- ghc-9.10
133135
"ghc-9.10.1" -> Just Ghc9101
134136
-- ghc-9.8
137+
"ghc-9.8.5" -> Just Ghc985
135138
"ghc-9.8.4" -> Just Ghc984
136139
"ghc-9.8.3" -> Just Ghc983
137140
"ghc-9.8.2" -> Just Ghc982

ghc-lib-gen/src/Ghclibgen.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,6 +1234,7 @@ baseBounds = \case
12341234
-- base-4.19.2.0
12351235
Ghc983 -> "base >= 4.17 && < 4.20" -- [ghc-9.4.1, ghc-9.10.1)
12361236
Ghc984 -> "base >= 4.17 && < 4.20" -- [ghc-9.4.1, ghc-9.10.1)
1237+
Ghc985 -> "base >= 4.17 && < 4.20" -- [ghc-9.4.1, ghc-9.10.1)
12371238
-- base-4.20.0.0
12381239
Ghc9101 -> "base >= 4.18 && < 4.21" -- [ghc-9.6.1, ghc-9.12.1)
12391240
-- base-4.21.0.0

ghc-lib-gen/src/GhclibgenFlavor.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ data GhcFlavor
5151
| Ghc982
5252
| Ghc983
5353
| Ghc984
54+
| Ghc985
5455
| Ghc9101
5556
| Ghc9121
5657
| GhcMaster

ghc-lib-gen/src/GhclibgenOpts.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ readFlavor = eitherReader $ \case
9898
-- ghc-9.10
9999
"ghc-9.10.1" -> Right Ghc9101
100100
-- ghc-9.8
101+
"ghc-9.8.5" -> Right Ghc985
101102
"ghc-9.8.4" -> Right Ghc984
102103
"ghc-9.8.3" -> Right Ghc983
103104
"ghc-9.8.2" -> Right Ghc982

0 commit comments

Comments
 (0)