Skip to content

Commit c12b1b7

Browse files
committed
Allow template-haskell-2.22; bump Haskell CI to GHC 9.10.1
1 parent 4b8571d commit c12b1b7

File tree

9 files changed

+16
-32
lines changed

9 files changed

+16
-32
lines changed

.github/workflows/haskell-ci.yml

+7-23
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/andreasabel/haskell-ci
1010
#
11-
# version: 0.19.20240403
11+
# version: 0.19.20240517
1212
#
13-
# REGENDATA ("0.19.20240403",["github","cabal.project"])
13+
# REGENDATA ("0.19.20240517",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -27,14 +27,14 @@ jobs:
2727
timeout-minutes:
2828
60
2929
container:
30-
image: buildpack-deps:focal
30+
image: buildpack-deps:jammy
3131
continue-on-error: ${{ matrix.allow-failure }}
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.10.0.20240328
35+
- compiler: ghc-9.10.1
3636
compilerKind: ghc
37-
compilerVersion: 9.10.0.20240328
37+
compilerVersion: 9.10.1
3838
setup-method: ghcup
3939
allow-failure: false
4040
- compiler: ghc-9.8.2
@@ -91,7 +91,6 @@ jobs:
9191
mkdir -p "$HOME/.ghcup/bin"
9292
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
9393
chmod a+x "$HOME/.ghcup/bin/ghcup"
94-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
9594
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
9695
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.3.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
9796
env:
@@ -116,7 +115,7 @@ jobs:
116115
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
117116
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
118117
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
119-
if [ $((HCNUMVER >= 91000)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
118+
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
120119
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
121120
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
122121
env:
@@ -145,18 +144,6 @@ jobs:
145144
repository hackage.haskell.org
146145
url: http://hackage.haskell.org/
147146
EOF
148-
if $HEADHACKAGE; then
149-
cat >> $CABAL_CONFIG <<EOF
150-
repository head.hackage.ghc.haskell.org
151-
url: https://ghc.gitlab.haskell.org/head.hackage/
152-
secure: True
153-
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
154-
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
155-
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
156-
key-threshold: 3
157-
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
158-
EOF
159-
fi
160147
cat >> $CABAL_CONFIG <<EOF
161148
program-default-options
162149
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -252,10 +239,7 @@ jobs:
252239
constraints: base-compat >= 0.12.2
253240
allow-newer: containers
254241
EOF
255-
if $HEADHACKAGE; then
256-
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
257-
fi
258-
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(example-client|hackage-repo-tool|hackage-root-tool|hackage-security|hackage-security-HTTP|hackage-security-curl|hackage-security-http-client|precompute-fileinfo)$/; }' >> cabal.project.local
242+
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(example-client|hackage-repo-tool|hackage-root-tool|hackage-security|hackage-security-HTTP|hackage-security-curl|hackage-security-http-client|precompute-fileinfo)$/; }' >> cabal.project.local
259243
cat cabal.project
260244
cat cabal.project.local
261245
- name: dump install plan

example-client/example-client.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build-type: Simple
1212
cabal-version: >=1.10
1313

1414
tested-with:
15-
GHC == 9.10.0
15+
GHC == 9.10.1
1616
GHC == 9.8.2
1717
GHC == 9.6.4
1818
GHC == 9.4.8

hackage-repo-tool/hackage-repo-tool.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ homepage: https://github.com/haskell/hackage-security
2323
bug-reports: https://github.com/haskell/hackage-security/issues
2424

2525
tested-with:
26-
GHC == 9.10.0
26+
GHC == 9.10.1
2727
GHC == 9.8.2
2828
GHC == 9.6.4
2929
GHC == 9.4.8

hackage-root-tool/hackage-root-tool.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build-type: Simple
1616
cabal-version: >=1.10
1717

1818
tested-with:
19-
GHC == 9.10.0
19+
GHC == 9.10.1
2020
GHC == 9.8.2
2121
GHC == 9.6.4
2222
GHC == 9.4.8

hackage-security-HTTP/hackage-security-HTTP.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ bug-reports: https://github.com/haskell/hackage-security/issues
1818
build-type: Simple
1919

2020
tested-with:
21-
GHC == 9.10.0
21+
GHC == 9.10.1
2222
GHC == 9.8.2
2323
GHC == 9.6.4
2424
GHC == 9.4.8

hackage-security-curl/hackage-security-curl.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build-type: Simple
1616
cabal-version: >=1.10
1717

1818
tested-with:
19-
GHC == 9.10.0
19+
GHC == 9.10.1
2020
GHC == 9.8.2
2121
GHC == 9.6.4
2222
GHC == 9.4.8

hackage-security-http-client/hackage-security-http-client.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cabal-version: >=1.10
1616
extra-source-files: ChangeLog.md
1717

1818
tested-with:
19-
GHC == 9.10.0
19+
GHC == 9.10.1
2020
GHC == 9.8.2
2121
GHC == 9.6.4
2222
GHC == 9.4.8

hackage-security/hackage-security.cabal

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ bug-reports: https://github.com/haskell/hackage-security/issues
3131
build-type: Simple
3232

3333
tested-with:
34-
GHC == 9.10.0
34+
GHC == 9.10.1
3535
GHC == 9.8.2
3636
GHC == 9.6.4
3737
GHC == 9.4.8
@@ -122,7 +122,7 @@ library
122122
-- 0.4.2 introduces TarIndex, 0.4.4 introduces more
123123
-- functionality, 0.5.0 changes type of serialise
124124
tar >= 0.5 && < 0.7,
125-
template-haskell >= 2.13 && < 2.22,
125+
template-haskell >= 2.13 && < 2.23,
126126
time >= 1.8.0.2 && < 1.15,
127127
transformers >= 0.3 && < 0.7,
128128
zlib >= 0.5 && < 0.8,

precompute-fileinfo/precompute-fileinfo.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build-type: Simple
1515
cabal-version: >=1.10
1616

1717
tested-with:
18-
GHC == 9.10.0
18+
GHC == 9.10.1
1919
GHC == 9.8.2
2020
GHC == 9.6.4
2121
GHC == 9.4.8

0 commit comments

Comments
 (0)