Skip to content

Commit cdac621

Browse files
authored
Merge pull request #11966 from haskell/three-years
Narrow GHC support window from 5 to 3 years
2 parents 5fe8d8d + 1364296 commit cdac621

13 files changed

Lines changed: 28 additions & 656 deletions

File tree

.github/workflows/validate.yml

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -65,43 +65,8 @@ jobs:
6565
"9.10.3",
6666
"9.8.4",
6767
"9.6.7",
68-
"9.4.8",
69-
"9.2.8",
70-
"9.0.2",
71-
"8.10.7",
72-
"8.8.4",
68+
"9.4.8"
7369
]
74-
exclude:
75-
# ghc-pkg.exe starts silently failing for a few hours
76-
- sys:
77-
{ os: windows-latest, shell: "C:/msys64/usr/bin/bash.exe -e {0}" }
78-
ghc: "9.2.8"
79-
# Throws fatal "cabal-tests.exe: fd:8: hGetLine: end of file" exception
80-
# even with --io-manager=native
81-
- sys:
82-
{ os: windows-latest, shell: "C:/msys64/usr/bin/bash.exe -e {0}" }
83-
ghc: "9.0.2"
84-
# corrupts GHA cache or the fabric of reality itself, see https://github.com/haskell/cabal/issues/8356
85-
- sys:
86-
{ os: windows-latest, shell: "C:/msys64/usr/bin/bash.exe -e {0}" }
87-
ghc: "8.10.7"
88-
# lot of segfaults caused by ghc bugs
89-
- sys:
90-
{ os: windows-latest, shell: "C:/msys64/usr/bin/bash.exe -e {0}" }
91-
ghc: "8.8.4"
92-
# ghc before 8.10.5 doesn't run on AArch64
93-
# 9.0.2 suffers from https://gitlab.haskell.org/ghc/ghc/-/issues/20592
94-
# 8.10.7 throws asm errors in hashable's cbits suggesting the runner doesn't
95-
# support a CPU extension for hardware SHA; may be fixable with flags
96-
- sys:
97-
{ os: macos-latest, shell: bash }
98-
ghc: "9.0.2"
99-
- sys:
100-
{ os: macos-latest, shell: bash }
101-
ghc: "8.10.7"
102-
- sys:
103-
{ os: macos-latest, shell: bash }
104-
ghc: "8.8.4"
10570
defaults:
10671
run:
10772
shell: ${{ matrix.sys.shell }}
@@ -271,7 +236,7 @@ jobs:
271236
strategy:
272237
matrix:
273238
extra-ghc:
274-
["8.6.5", "8.4.4", "8.2.2", "8.0.2"]
239+
["9.2.8", "9.0.2", "8.10.7", "8.8.4", "8.6.5", "8.4.4", "8.2.2", "8.0.2"]
275240
## GHC 7.10.3 does not install on ubuntu-latest with ghcup.
276241
## Older GHCs are not supported by ghcup in the first place.
277242
fail-fast: false

Cabal-hooks/Cabal-hooks.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ library
2929
build-depends:
3030
, Cabal-syntax >= 3.17 && < 3.18
3131
, Cabal >= 3.17 && < 3.18
32-
, base >= 4.13 && < 5
32+
, base >= 4.17 && < 5
3333
, containers >= 0.5.0.0 && < 0.9
3434
, transformers >= 0.5.6.0 && < 0.7
3535

Cabal-syntax/Cabal-syntax.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ library
2929

3030
build-depends:
3131
, array >= 0.4.0.1 && < 0.6
32-
, base >= 4.13 && < 5
32+
, base >= 4.17 && < 5
3333
, binary >= 0.8.1 && < 0.9
3434
, bytestring >= 0.10.4.0 && < 0.13
3535
, containers >= 0.5.2 && < 0.9

Cabal-tests/Cabal-tests.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ test-suite unit-tests
5656
main-is: UnitTests.hs
5757
build-depends:
5858
, array
59-
, base >=4.13 && <5
59+
, base >=4.17 && <5
6060
, bytestring
6161
, Cabal
6262
, Cabal-described

Cabal/Cabal.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ library
4141
build-depends:
4242
, Cabal-syntax ^>= 3.17
4343
, array >= 0.4.0.1 && < 0.6
44-
, base >= 4.13 && < 5
44+
, base >= 4.17 && < 5
4545
, bytestring >= 0.10.8 && < 0.13
4646
, containers >= 0.5.8.2 && < 0.9
4747
, deepseq >= 1.3.0.1 && < 1.7

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,17 @@ Got questions? Ask in [Haskell Matrix](https://matrix.to/#/#haskell:matrix.org)
115115
Support window
116116
--------------
117117
118-
Our GHC support window is five years ([reference](https://gitlab.haskell.org/ghc/ghc/-/wikis/GHC%20Status#all-released-ghc-versions))
118+
Our GHC support window is three years ([reference](https://gitlab.haskell.org/ghc/ghc/-/wikis/GHC%20Status#all-released-ghc-versions))
119119
for both the Cabal library and `cabal-install`. That is:
120120
121121
* Cabal library must be buildable out-of-the-box against the
122-
boot libraries shipped with GHC, for any GHC released in the past five
122+
boot libraries shipped with GHC, for any GHC released in the past three
123123
years from Cabal library release date.
124124
* `cabal-install` should be buildable with `bootstrap/bootstrap.py`
125-
script, for any GHC released in the past five years from `cabal-install`
125+
script, for any GHC released in the past three years from `cabal-install`
126126
release date.
127127
* `cabal-install` should be able to drive the most recent minor version of
128-
any GHCs major version released in the past five years from `cabal-install`
128+
any GHCs major version released in the past three years from `cabal-install`
129129
release date.
130130
In this context, "drive" means `cabal-install` will work with the Cabal
131131
library (usually but not always the one that came with the ghc version)
@@ -135,7 +135,7 @@ Self-upgrade to the latest version (i.e. `cabal install cabal-install`)
135135
must work with all versions of `cabal-install` released during the last
136136
three years.
137137
138-
Cabal maintainers try to support GHC versions older than five years
138+
Cabal maintainers try to support GHC versions older than three years
139139
on a minimal-effort basis.
140140
141141
Build for hacking and contributing to cabal

bootstrap/cabal-bootstrap-gen.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ executable cabal-bootstrap-gen
99
main-is: Main.hs
1010
build-depends:
1111
, aeson ^>=1.5.2.0 || ^>=2.0.3.0 || ^>=2.1.0.0 || ^>=2.2.0.0
12-
, base >=4.12.0.0 && < 5
12+
, base >=4.17.0.0 && < 5
1313
, bytestring >=0.10.8.2 && <0.13
1414
, Cabal ^>=3.14.1.0 || ^>=3.16.0.0
1515
, Cabal-syntax ^>=3.14.1.0 || ^>=3.16.0.0

0 commit comments

Comments
 (0)