Skip to content

Commit 2db38d4

Browse files
committed
Support GHC-9.10
1 parent fbc8ba3 commit 2db38d4

File tree

4 files changed

+28
-13
lines changed

4 files changed

+28
-13
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.19.20240501
11+
# version: 0.19.20240514
1212
#
13-
# REGENDATA ("0.19.20240501",["--config=cabal.haskell-ci","github","cabal.project"])
13+
# REGENDATA ("0.19.20240514",["--config=cabal.haskell-ci","github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,6 +32,11 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35+
- compiler: ghc-9.10.1
36+
compilerKind: ghc
37+
compilerVersion: 9.10.1
38+
setup-method: ghcup
39+
allow-failure: false
3540
- compiler: ghc-9.8.2
3641
compilerKind: ghc
3742
compilerVersion: 9.8.2
@@ -81,7 +86,6 @@ jobs:
8186
mkdir -p "$HOME/.ghcup/bin"
8287
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
8388
chmod a+x "$HOME/.ghcup/bin/ghcup"
84-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
8589
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
8690
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
8791
env:
@@ -166,7 +170,7 @@ jobs:
166170
touch cabal.project
167171
echo "packages: $GITHUB_WORKSPACE/source/indexed-traversable" >> cabal.project
168172
echo "packages: $GITHUB_WORKSPACE/source/indexed-traversable-instances" >> cabal.project
169-
echo "packages: $GITHUB_WORKSPACE/source/indexed-traversable-benchmarks" >> cabal.project
173+
if [ $((HCNUMVER < 91000)) -ne 0 ] ; then echo "packages: $GITHUB_WORKSPACE/source/indexed-traversable-benchmarks" >> cabal.project ; fi
170174
cat cabal.project
171175
- name: sdist
172176
run: |
@@ -189,16 +193,20 @@ jobs:
189193
touch cabal.project.local
190194
echo "packages: ${PKGDIR_indexed_traversable}" >> cabal.project
191195
echo "packages: ${PKGDIR_indexed_traversable_instances}" >> cabal.project
192-
echo "packages: ${PKGDIR_indexed_traversable_benchmarks}" >> cabal.project
196+
if [ $((HCNUMVER < 91000)) -ne 0 ] ; then echo "packages: ${PKGDIR_indexed_traversable_benchmarks}" >> cabal.project ; fi
193197
echo "package indexed-traversable" >> cabal.project
194198
echo " ghc-options: -Werror=missing-methods" >> cabal.project
195199
echo "package indexed-traversable-instances" >> cabal.project
196200
echo " ghc-options: -Werror=missing-methods" >> cabal.project
197-
echo "package indexed-traversable-benchmarks" >> cabal.project
198-
echo " ghc-options: -Werror=missing-methods" >> cabal.project
201+
if [ $((HCNUMVER < 91000)) -ne 0 ] ; then echo "package indexed-traversable-benchmarks" >> cabal.project ; fi
202+
if [ $((HCNUMVER < 91000)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
199203
cat >> cabal.project <<EOF
204+
allow-newer: quickcheck-instances:base
205+
allow-newer: quickcheck-instances:containers
206+
allow-newer: uuid-types:template-haskell
207+
allow-newer: these:base
200208
EOF
201-
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(indexed-traversable|indexed-traversable-benchmarks|indexed-traversable-instances)$/; }' >> cabal.project.local
209+
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(indexed-traversable|indexed-traversable-benchmarks|indexed-traversable-instances)$/; }' >> cabal.project.local
202210
cat cabal.project
203211
cat cabal.project.local
204212
- name: dump install plan
@@ -226,8 +234,8 @@ jobs:
226234
${CABAL} -vnormal check
227235
cd ${PKGDIR_indexed_traversable_instances} || false
228236
${CABAL} -vnormal check
229-
cd ${PKGDIR_indexed_traversable_benchmarks} || false
230-
${CABAL} -vnormal check
237+
if [ $((HCNUMVER < 91000)) -ne 0 ] ; then cd ${PKGDIR_indexed_traversable_benchmarks} || false ; fi
238+
if [ $((HCNUMVER < 91000)) -ne 0 ] ; then ${CABAL} -vnormal check ; fi
231239
- name: haddock
232240
run: |
233241
$CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all

cabal.project

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ package indexed-traversable-instances
1212

1313
package indexed-traversable-benchmarks
1414
ghc-options: -Wall
15+
16+
allow-newer: quickcheck-instances:base
17+
allow-newer: quickcheck-instances:containers
18+
allow-newer: uuid-types:template-haskell
19+
allow-newer: these:base

indexed-traversable-instances/indexed-traversable-instances.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ tested-with:
2929
|| ==9.4.8
3030
|| ==9.6.5
3131
|| ==9.8.2
32+
|| ==9.10.1
3233

3334
source-repository head
3435
type: git
@@ -39,7 +40,7 @@ library
3940
default-language: Haskell2010
4041
hs-source-dirs: src
4142
build-depends:
42-
base >=4.12 && <4.20
43+
base >=4.12 && <4.21
4344
, indexed-traversable >=0.1.4 && <0.2
4445
, OneTuple >=0.3 && <0.5
4546
, tagged >=0.8.6 && <0.9

indexed-traversable/indexed-traversable.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ tested-with:
4242
|| ==9.4.8
4343
|| ==9.6.5
4444
|| ==9.8.2
45+
|| ==9.10.1
4546

4647
source-repository head
4748
type: git
@@ -64,8 +65,8 @@ library
6465

6566
build-depends:
6667
array >=0.3.0.2 && <0.6
67-
, base >=4.12 && <4.20
68-
, containers >=0.6.0.1 && <0.7
68+
, base >=4.12 && <4.21
69+
, containers >=0.6.0.1 && <0.8
6970
, transformers >=0.5.6.0 && <0.7
7071

7172
if !impl(ghc >=9.6)

0 commit comments

Comments
 (0)