on master help sign in
Merge pull request #84 from haskell-hvr/ghc-9.10b

GHC-9.10 support (uuid)

commit68807115166d7479e4085b50020ad35946b3a63e authorOleg Grenrus <oleg.grenrus@iki.fi> dateWed 3 Jul 2024, 12:37 (2 years ago) parent07cfb8f27eedf0
6 files changed+32−25
.github/workflows/haskell-ci-bench.yml+11−6 .github/workflows/haskell-ci.yml+12−12 cabal.haskell-ci+1−1 uuid-bench/uuid-bench.cabal+5−4 uuid-types/uuid-types.cabal+1−1 uuid/uuid.cabal+2−1
.github/workflows/haskell-ci-bench.yml+11−6
@@ -8,9 +8,9 @@
88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11−# version: 0.19.20240514
11+# version: 0.19.20240702
1212#
13−# REGENDATA ("0.19.20240514",["github","--project","cabal.bench.project","-o",".github/workflows/haskell-ci-bench.yml","--github-action-name","Benchmarks"])
13+# REGENDATA ("0.19.20240702",["github","--project","cabal.bench.project","-o",".github/workflows/haskell-ci-bench.yml","--github-action-name","Benchmarks"])
1414#
1515name: Benchmarks
1616on:
@@ -32,14 +32,19 @@ 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
3843 setup-method: ghcup
3944 allow-failure: false
40− - compiler: ghc-9.6.4
45+ - compiler: ghc-9.6.6
4146 compilerKind: ghc
42− compilerVersion: 9.6.4
47+ compilerVersion: 9.6.6
4348 setup-method: ghcup
4449 allow-failure: false
4550 - compiler: ghc-9.4.8
@@ -82,7 +87,7 @@ jobs:
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"
8489 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
85− "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
90+ "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
8691 env:
8792 HCKIND: ${{ matrix.compilerKind }}
8893 HCNAME: ${{ matrix.compiler }}
@@ -100,7 +105,7 @@ jobs:
100105 echo "HC=$HC" >> "$GITHUB_ENV"
101106 echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
102107 echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
103− echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
108+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
104109 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
105110 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
106111 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
.github/workflows/haskell-ci.yml+12−12
@@ -8,9 +8,9 @@
88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11−# version: 0.19.20240514
11+# version: 0.19.20240702
1212#
13−# REGENDATA ("0.19.20240514",["github","cabal.project"])
13+# REGENDATA ("0.19.20240702",["github","cabal.project"])
1414#
1515name: Haskell-CI
1616on:
@@ -42,9 +42,9 @@ jobs:
4242 compilerVersion: 9.8.2
4343 setup-method: ghcup
4444 allow-failure: false
45− - compiler: ghc-9.6.5
45+ - compiler: ghc-9.6.6
4646 compilerKind: ghc
47− compilerVersion: 9.6.5
47+ compilerVersion: 9.6.6
4848 setup-method: ghcup
4949 allow-failure: false
5050 - compiler: ghc-9.4.8
@@ -87,7 +87,7 @@ jobs:
8787 curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
8888 chmod a+x "$HOME/.ghcup/bin/ghcup"
8989 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
90− "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
90+ "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
9191 env:
9292 HCKIND: ${{ matrix.compilerKind }}
9393 HCNAME: ${{ matrix.compiler }}
@@ -105,7 +105,7 @@ jobs:
105105 echo "HC=$HC" >> "$GITHUB_ENV"
106106 echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
107107 echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
108− echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
108+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
109109 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
110110 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
111111 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -169,7 +169,7 @@ jobs:
169169 run: |
170170 touch cabal.project
171171 echo "packages: $GITHUB_WORKSPACE/source/uuid-types" >> cabal.project
172− if [ $((HCNUMVER < 91000)) -ne 0 ] ; then echo "packages: $GITHUB_WORKSPACE/source/uuid" >> cabal.project ; fi
172+ echo "packages: $GITHUB_WORKSPACE/source/uuid" >> cabal.project
173173 cat cabal.project
174174 - name: sdist
175175 run: |
@@ -189,11 +189,11 @@ jobs:
189189 touch cabal.project
190190 touch cabal.project.local
191191 echo "packages: ${PKGDIR_uuid_types}" >> cabal.project
192− if [ $((HCNUMVER < 91000)) -ne 0 ] ; then echo "packages: ${PKGDIR_uuid}" >> cabal.project ; fi
192+ echo "packages: ${PKGDIR_uuid}" >> cabal.project
193193 echo "package uuid-types" >> cabal.project
194194 echo " ghc-options: -Werror=missing-methods" >> cabal.project
195− if [ $((HCNUMVER < 91000)) -ne 0 ] ; then echo "package uuid" >> cabal.project ; fi
196− if [ $((HCNUMVER < 91000)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
195+ echo "package uuid" >> cabal.project
196+ echo " ghc-options: -Werror=missing-methods" >> cabal.project
197197 cat >> cabal.project <<EOF
198198 EOF
199199 $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(uuid|uuid-types)$/; }' >> cabal.project.local
@@ -226,8 +226,8 @@ jobs:
226226 run: |
227227 cd ${PKGDIR_uuid_types} || false
228228 ${CABAL} -vnormal check
229− if [ $((HCNUMVER < 91000)) -ne 0 ] ; then cd ${PKGDIR_uuid} || false ; fi
230− if [ $((HCNUMVER < 91000)) -ne 0 ] ; then ${CABAL} -vnormal check ; fi
229+ cd ${PKGDIR_uuid} || false
230+ ${CABAL} -vnormal check
231231 - name: haddock
232232 run: |
233233 $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
cabal.haskell-ci+1−1
@@ -1,5 +1,5 @@
11branches: master
2−jobs-selection: any
2+-- jobs-selection: any
33head-hackage: False
44
55constraint-set random-1.2
uuid-bench/uuid-bench.cabal+5−4
@@ -20,8 +20,9 @@ tested-with:
2020 || ==9.0.2
2121 || ==9.2.8
2222 || ==9.4.8
23− || ==9.6.4
23+ || ==9.6.6
2424 || ==9.8.2
25+ || ==9.10.1
2526
2627synopsis: UUID benchmarks
2728description:
@@ -49,7 +50,7 @@ library
4950 , hashable >=1.4.4.0 && <1.5
5051 , network-info >=0.2 && <0.3
5152 , random >=1.2.1.2 && <1.3
52− , template-haskell >=2.14.0.0 && <2.22
53+ , template-haskell >=2.14.0.0 && <2.23
5354 , text >=1.2.3.0 && <1.3 || >=2.0 && <2.2
5455 , time >=1.4 && <1.13
5556
@@ -99,7 +100,7 @@ benchmark uuid-types-benchmark
99100
100101 -- deps w/o inherited constraints
101102 build-depends:
102− containers >=0.5 && <0.7
103+ containers >=0.5 && <0.8
103104 , criterion >=1.5 && <1.7
104105 , unordered-containers >=0.2.7 && <0.3
105106
@@ -118,7 +119,7 @@ benchmark uuid-benchmark
118119 build-depends:
119120 base
120121 , random
121− , uuid
122+ , uuid-bench
122123
123124 -- deps w/o inherited constraints
124125 build-depends:
uuid-types/uuid-types.cabal+1−1
@@ -18,7 +18,7 @@ tested-with:
1818 || ==9.0.2
1919 || ==9.2.8
2020 || ==9.4.8
21− || ==9.6.5
21+ || ==9.6.6
2222 || ==9.8.2
2323 || ==9.10.1
2424
uuid/uuid.cabal+2−1
@@ -15,8 +15,9 @@ tested-with:
1515 || ==9.0.2
1616 || ==9.2.8
1717 || ==9.4.8
18− || ==9.6.5
18+ || ==9.6.6
1919 || ==9.8.2
20+ || ==9.10.1
2021
2122synopsis:
2223 For creating, comparing, parsing and printing Universally Unique Identifiers