Skip to content

Commit 3096608

Browse files
authored
Merge pull request #56 from haskell-hvr/ghc-9.14
Support GHC-9.14
2 parents 56fd650 + f446c32 commit 3096608

File tree

3 files changed

+34
-20
lines changed

3 files changed

+34
-20
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 26 additions & 14 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.20241220
11+
# version: 0.19.20260104
1212
#
13-
# REGENDATA ("0.19.20241220",["github","cabal.project"])
13+
# REGENDATA ("0.19.20260104",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -20,10 +20,13 @@ on:
2020
pull_request:
2121
branches:
2222
- master
23+
merge_group:
24+
branches:
25+
- master
2326
jobs:
2427
linux:
2528
name: Haskell-CI - Linux - ${{ matrix.compiler }}
26-
runs-on: ubuntu-20.04
29+
runs-on: ubuntu-24.04
2730
timeout-minutes:
2831
60
2932
container:
@@ -32,14 +35,19 @@ jobs:
3235
strategy:
3336
matrix:
3437
include:
35-
- compiler: ghc-9.12.1
38+
- compiler: ghc-9.14.1
39+
compilerKind: ghc
40+
compilerVersion: 9.14.1
41+
setup-method: ghcup
42+
allow-failure: false
43+
- compiler: ghc-9.12.2
3644
compilerKind: ghc
37-
compilerVersion: 9.12.1
45+
compilerVersion: 9.12.2
3846
setup-method: ghcup
3947
allow-failure: false
40-
- compiler: ghc-9.10.1
48+
- compiler: ghc-9.10.2
4149
compilerKind: ghc
42-
compilerVersion: 9.10.1
50+
compilerVersion: 9.10.2
4351
setup-method: ghcup
4452
allow-failure: false
4553
- compiler: ghc-9.8.4
@@ -91,13 +99,12 @@ jobs:
9199
- name: Install GHCup
92100
run: |
93101
mkdir -p "$HOME/.ghcup/bin"
94-
curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
102+
curl -sL https://downloads.haskell.org/ghcup/0.1.50.1/x86_64-linux-ghcup-0.1.50.1 > "$HOME/.ghcup/bin/ghcup"
95103
chmod a+x "$HOME/.ghcup/bin/ghcup"
96-
- name: Install cabal-install (prerelease)
104+
- name: Install cabal-install
97105
run: |
98-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
99-
"$HOME/.ghcup/bin/ghcup" install cabal 3.15.0.0.2024.10.3 || (cat "$HOME"/.ghcup/logs/*.* && false)
100-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.15.0.0.2024.10.3 -vnormal+nowrap" >> "$GITHUB_ENV"
106+
"$HOME/.ghcup/bin/ghcup" install cabal 3.16.0.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
107+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.16.0.0 -vnormal+nowrap" >> "$GITHUB_ENV"
101108
- name: Install GHC (GHCup)
102109
if: matrix.setup-method == 'ghcup'
103110
run: |
@@ -173,7 +180,7 @@ jobs:
173180
chmod a+x $HOME/.cabal/bin/cabal-plan
174181
cabal-plan --version
175182
- name: checkout
176-
uses: actions/checkout@v4
183+
uses: actions/checkout@v5
177184
with:
178185
path: source
179186
- name: initial cabal.project for sdist
@@ -198,8 +205,13 @@ jobs:
198205
touch cabal.project.local
199206
echo "packages: ${PKGDIR_text_short}" >> cabal.project
200207
echo "package text-short" >> cabal.project
201-
echo " ghc-options: -Werror=missing-methods" >> cabal.project
208+
echo " ghc-options: -Werror=missing-methods -Werror=missing-fields" >> cabal.project
209+
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "package text-short" >> cabal.project ; fi
210+
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo " ghc-options: -Werror=unused-packages" >> cabal.project ; fi
211+
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then echo "package text-short" >> cabal.project ; fi
212+
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then echo " ghc-options: -Werror=incomplete-patterns -Werror=incomplete-uni-patterns" >> cabal.project ; fi
202213
cat >> cabal.project <<EOF
214+
allow-newer: splitmix-0.1.3.1:base
203215
EOF
204216
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(text-short)$/; }' >> cabal.project.local
205217
cat cabal.project

cabal.project

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ tests: True
33

44
package text-short
55
flags: +asserts
6+
7+
allow-newer: splitmix-0.1.3.1:base

text-short.cabal

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 1.18
22
name: text-short
33
version: 0.1.6
4-
x-revision: 3
4+
x-revision: 4
55
synopsis: Memory-efficient representation of Unicode text strings
66
license: BSD3
77
license-file: LICENSE
@@ -24,8 +24,9 @@ tested-with:
2424
|| ==9.4.8
2525
|| ==9.6.6
2626
|| ==9.8.4
27-
|| ==9.10.1
28-
|| ==9.12.1
27+
|| ==9.10.2
28+
|| ==9.12.2
29+
|| ==9.14.1
2930

3031
extra-source-files: ChangeLog.md
3132

@@ -46,13 +47,13 @@ library
4647

4748
other-modules: Data.Text.Short.Internal
4849
build-depends:
49-
base >=4.12 && <4.22
50+
base >=4.12 && <4.23
5051
, binary >=0.8.6.0 && <0.9
5152
, bytestring >=0.10.8.2 && <0.13
5253
, deepseq >=1.4.4.0 && <1.6
5354
, ghc-prim >=0.5.3 && <0.14
5455
, hashable >=1.4.4.0 && <1.6
55-
, template-haskell >=2.14.0.0 && <2.24
56+
, template-haskell >=2.14.0.0 && <2.25
5657
, text >=1.2.3.1 && <1.3 || >=2.0 && <2.2
5758

5859
other-modules: PrimOps
@@ -88,7 +89,6 @@ test-suite text-short-tests
8889
base
8990
, binary
9091
, bytestring
91-
, template-haskell
9292
, text
9393
, text-short
9494

0 commit comments

Comments
 (0)