Skip to content

Commit 7909071

Browse files
committed
Close #122: drop support for Cabal 3.10.1 and below
1 parent f683c11 commit 7909071

File tree

2 files changed

+16
-72
lines changed

2 files changed

+16
-72
lines changed

.github/workflows/workflow.yml

Lines changed: 14 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ jobs:
7777
# Test #210 (XDG): is the cabal store-dir set to something meaningful?
7878

7979
- ghc: "9.4"
80-
cabal: "3.8"
80+
cabal: "3.10.2.1"
8181
cabal_update: "false"
8282

8383
- ghc: "9.2"
84-
cabal: "3.6"
84+
cabal: "3.10.2.0"
8585
cabal_update: "false"
8686

8787
# The following tests do not set 'cabal-update', which defaults to 'true' then.
@@ -96,62 +96,59 @@ jobs:
9696
cabal: latest
9797
cabal_update: "true"
9898

99-
# Some previously recommended releases of ghc with matching cabal
99+
# Some previously recommended releases of ghc with supported cabal
100100

101101
- os: macos-13
102102
# GHC 9.0 does not work on macos-14 (LLVM problem #77)
103103
plan:
104104
ghc: "9.0"
105-
cabal: "3.4"
105+
cabal: "3.10"
106106

107107
- os: ubuntu-latest
108108
plan:
109109
ghc: "8.10"
110-
cabal: "3.2"
110+
cabal: "3.14.1.1"
111111

112112
- os: ubuntu-latest
113113
plan:
114114
ghc: "8.8"
115-
cabal: "3.0"
115+
cabal: "3.14.1.0"
116116
# cabal-3.0 install might have the Windows symlinking problem
117117
# https://github.com/haskell/cabal/issues/5748
118118

119119
- os: ubuntu-latest
120120
plan:
121121
ghc: "8.6"
122-
cabal: "2.4"
123-
cabal_update: "false"
124-
# Setting cabal_update to "true" will try to build the test project
125-
# with hackage dependencies, but something goes wrong.
126-
# TODO: figure out what.
127-
# cabal update needed here since cabal-2.4 is still v1
122+
cabal: "3.12.1.0"
123+
cabal_update: "true"
128124

129125
# Test on ubuntu-24.04 with older ghc
130126
- os: ubuntu-24.04
131127
plan:
132128
ghc: "8.0"
133-
cabal: "2.4.1.0"
129+
cabal: "3.10.3.0"
134130
cabal_update: "false"
135131

136132
- os: ubuntu-22.04
137133
plan:
138134
ghc: "8.0"
139-
cabal: "2.4.1.0"
135+
cabal: "3.10.2.1"
140136
cabal_update: "false"
141137

142138
# Test some old versions
143139
- os: ubuntu-latest
144140
plan:
145141
ghc: "8.2.2"
146-
cabal: "2.4.1.0"
142+
cabal: "3.10.2.0"
147143
cabal_update: "false"
148144

149145
# Test ghcup pre-release channel
150146
- os: ubuntu-latest
151147
ghcup_release_channel: "https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.9.yaml"
152148
plan:
153-
ghc: "9.6.0.20230111"
154-
cabal: "3.8"
149+
ghc: "9.12.1.20250219"
150+
# 2025-07-29: just not out yet: "9.10.2.20250725"
151+
cabal: "latest"
155152

156153
# Test ghc nightly
157154
- os: ubuntu-latest
@@ -161,52 +158,6 @@ jobs:
161158
ghc: "latest-nightly"
162159
cabal: "latest"
163160

164-
## Andreas, 2024-05-03, deprecate GHC 7, do not test it any longer
165-
#
166-
# - os: ubuntu-20.04
167-
# plan:
168-
# ghc: "7.4.2"
169-
# cabal: "3.4"
170-
# # ubuntu-20.04/hvr has of GHC 7 just 7.0.1, 7.0.4, 7.2.2, 7.4.2, 7.10.3
171-
# # and of cabal just 2.4, 3.0, 3.2, 3.4
172-
# # according to https://launchpad.net/~hvr/+archive/ubuntu/ghc?field.series_filter=focal
173-
#
174-
# # setup does something special for 7.10.3 (issue #79)
175-
# - os: ubuntu-20.04
176-
# plan:
177-
# ghc: "7.10.3"
178-
# cabal: "3.6"
179-
# - os: macOS-latest
180-
# plan:
181-
# ghc: "7.10.3"
182-
# cabal: "3.4"
183-
#
184-
# # Andreas 2022-12-29, issue #98: GHC 7.10 failed to install on windows (choco)
185-
# - os: windows-latest
186-
# plan:
187-
# ghc: "7.10"
188-
# cabal: "3.0"
189-
190-
## Andreas, 2024-05-03, stop testing old minor versions
191-
#
192-
# # Test for issue #129: GHC 9.4.3 failed to install on windows (choco)
193-
# - os: windows-latest
194-
# plan:
195-
# ghc: "9.4.3"
196-
# cabal: "3.8.1.0"
197-
198-
# # Test ghcup on windows (PR #206) which choco does not have 9.4.5
199-
# - os: windows-latest
200-
# plan:
201-
# ghc: "9.4.5"
202-
# cabal: "3.8"
203-
204-
# # Test GHC 9.4.4 on windows (Issue #245)
205-
# - os: windows-latest
206-
# plan:
207-
# ghc: "9.4.4"
208-
# cabal: "3.10.1.0"
209-
210161
steps:
211162
- uses: actions/checkout@v4
212163

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,8 @@ Suggestion: Try to support at least the three latest major versions of GHC.
143143
- `3.10.3.0` `3.10`
144144
- `3.10.2.1`
145145
- `3.10.2.0`
146-
- `3.10.1.0`
147-
- `3.8.1.0` `3.8`
148-
- `3.6.2.0` `3.6`
149-
- `3.6.0.0`
150-
- `3.4.1.0` `3.4`
151-
- `3.4.0.0`
152-
- `3.2.0.0` `3.2`
153-
- `3.0.0.0` `3.0`
154-
- `2.4.1.0` `2.4`
146+
147+
Older versions of `cabal` are not supported due to vulnerability [HSEC-2023-0015](https://github.com/haskell/security-advisories/blob/cea5781acfc2adb9bc02486497d782072c613bb6/advisories/hackage/cabal-install/HSEC-2023-0015.md).
155148

156149
Recommendation: Use the latest available version if possible.
157150

0 commit comments

Comments
 (0)