Skip to content

Commit 2e5a37a

Browse files
committed
Support GHC-9.8
1 parent 222bcb3 commit 2e5a37a

File tree

2 files changed

+29
-21
lines changed

2 files changed

+29
-21
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 22 additions & 15 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.15.20230313
11+
# version: 0.17.20231010
1212
#
13-
# REGENDATA ("0.15.20230313",["github","cabal.project"])
13+
# REGENDATA ("0.17.20231010",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,19 +32,24 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.6.1
35+
- compiler: ghc-9.8.1
3636
compilerKind: ghc
37-
compilerVersion: 9.6.1
37+
compilerVersion: 9.8.1
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.4.4
40+
- compiler: ghc-9.6.3
4141
compilerKind: ghc
42-
compilerVersion: 9.4.4
42+
compilerVersion: 9.6.3
4343
setup-method: ghcup
4444
allow-failure: false
45-
- compiler: ghc-9.2.7
45+
- compiler: ghc-9.4.7
4646
compilerKind: ghc
47-
compilerVersion: 9.2.7
47+
compilerVersion: 9.4.7
48+
setup-method: ghcup
49+
allow-failure: false
50+
- compiler: ghc-9.2.8
51+
compilerKind: ghc
52+
compilerVersion: 9.2.8
4853
setup-method: ghcup
4954
allow-failure: false
5055
- compiler: ghc-9.0.2
@@ -110,7 +115,7 @@ jobs:
110115
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
111116
if [ "${{ matrix.setup-method }}" = ghcup ]; then
112117
mkdir -p "$HOME/.ghcup/bin"
113-
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
118+
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
114119
chmod a+x "$HOME/.ghcup/bin/ghcup"
115120
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
116121
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
@@ -119,7 +124,7 @@ jobs:
119124
apt-get update
120125
apt-get install -y "$HCNAME"
121126
mkdir -p "$HOME/.ghcup/bin"
122-
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
127+
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
123128
chmod a+x "$HOME/.ghcup/bin/ghcup"
124129
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
125130
fi
@@ -135,10 +140,12 @@ jobs:
135140
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
136141
HCDIR=/opt/$HCKIND/$HCVER
137142
if [ "${{ matrix.setup-method }}" = ghcup ]; then
138-
HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
143+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
144+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
145+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
139146
echo "HC=$HC" >> "$GITHUB_ENV"
140-
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
141-
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
147+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
148+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
142149
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
143150
else
144151
HC=$HCDIR/bin/$HCKIND
@@ -197,8 +204,8 @@ jobs:
197204
- name: install cabal-plan
198205
run: |
199206
mkdir -p $HOME/.cabal/bin
200-
curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.6.2.0/cabal-plan-0.6.2.0-x86_64-linux.xz > cabal-plan.xz
201-
echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
207+
curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.7.3.0/cabal-plan-0.7.3.0-x86_64-linux.xz > cabal-plan.xz
208+
echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
202209
xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
203210
rm -f cabal-plan.xz
204211
chmod a+x $HOME/.cabal/bin/cabal-plan

binary-orphans.cabal

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 1.12
22
name: binary-orphans
33
version: 1.0.4.1
4-
x-revision: 2
4+
x-revision: 3
55
synopsis: Compatibility package for binary; provides instances
66
category: Data, Binary, Parsing, Compatibility
77
description:
@@ -27,9 +27,10 @@ tested-with:
2727
|| ==8.8.4
2828
|| ==8.10.7
2929
|| ==9.0.2
30-
|| ==9.2.7
31-
|| ==9.4.4
32-
|| ==9.6.1
30+
|| ==9.2.8
31+
|| ==9.4.7
32+
|| ==9.6.3
33+
|| ==9.8.1
3334

3435
extra-source-files: CHANGELOG.md
3536

@@ -44,7 +45,7 @@ library
4445
exposed-modules: Data.Binary.Orphans
4546
other-extensions: CPP
4647
build-depends:
47-
base >=4.5 && <4.19
48+
base >=4.5 && <4.20
4849
, binary >=0.5.1.0 && <0.6 || >=0.7.1.0 && <0.8 || >=0.8.3.0 && <0.8.10
4950
, transformers >=0.3.0.0 && <0.7
5051

@@ -76,7 +77,7 @@ test-suite binary-orphans-test
7677
, QuickCheck >=2.13.1 && <2.15
7778
, quickcheck-instances >=0.3.28 && <0.4
7879
, tagged >=0.8.6 && <0.9
79-
, tasty >=0.10.1.2 && <1.5
80+
, tasty >=0.10.1.2 && <1.6
8081
, tasty-quickcheck >=0.8.3.2 && <0.11
8182

8283
if !impl(ghc >=8.0)

0 commit comments

Comments
 (0)