Skip to content

Commit eb1f944

Browse files
authored
Merge pull request #81 from haskellari/ghc-9.8
Support GHC-9.8, bunch of newer versions of packages
2 parents cb39d65 + 76f1d61 commit eb1f944

File tree

2 files changed

+36
-26
lines changed

2 files changed

+36
-26
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 20 additions & 11 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.16.5
11+
# version: 0.17.20231010
1212
#
13-
# REGENDATA ("0.16.5",["github","cabal.project"])
13+
# REGENDATA ("0.17.20231010",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -37,14 +37,19 @@ jobs:
3737
compilerVersion: "8.4"
3838
setup-method: hvr-ppa
3939
allow-failure: false
40-
- compiler: ghc-9.6.2
40+
- compiler: ghc-9.8.1
4141
compilerKind: ghc
42-
compilerVersion: 9.6.2
42+
compilerVersion: 9.8.1
4343
setup-method: ghcup
4444
allow-failure: false
45-
- compiler: ghc-9.4.5
45+
- compiler: ghc-9.6.3
4646
compilerKind: ghc
47-
compilerVersion: 9.4.5
47+
compilerVersion: 9.6.3
48+
setup-method: ghcup
49+
allow-failure: false
50+
- compiler: ghc-9.4.7
51+
compilerKind: ghc
52+
compilerVersion: 9.4.7
4853
setup-method: ghcup
4954
allow-failure: false
5055
- compiler: ghc-9.2.8
@@ -128,7 +133,7 @@ jobs:
128133
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
129134
if [ "${{ matrix.setup-method }}" = ghcup ]; then
130135
mkdir -p "$HOME/.ghcup/bin"
131-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
136+
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
132137
chmod a+x "$HOME/.ghcup/bin/ghcup"
133138
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
134139
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
@@ -140,7 +145,7 @@ jobs:
140145
apt-get update
141146
if [ $((GHCJSARITH)) -ne 0 ] ; then apt-get install -y "$HCNAME" ghc-8.4.4 nodejs ; else apt-get install -y "$HCNAME" ; fi
142147
mkdir -p "$HOME/.ghcup/bin"
143-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
148+
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
144149
chmod a+x "$HOME/.ghcup/bin/ghcup"
145150
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
146151
fi
@@ -157,10 +162,12 @@ jobs:
157162
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
158163
HCDIR=/opt/$HCKIND/$HCVER
159164
if [ "${{ matrix.setup-method }}" = ghcup ]; then
160-
HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
165+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
166+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
167+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
161168
echo "HC=$HC" >> "$GITHUB_ENV"
162-
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
163-
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
169+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
170+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
164171
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
165172
else
166173
HC=$HCDIR/bin/$HCKIND
@@ -310,6 +317,8 @@ jobs:
310317
rm -f cabal.project.local
311318
- name: constraint set random-hashable
312319
run: |
320+
if [ $((! GHCJSARITH && HCNUMVER >= 90400 && HCNUMVER < 90600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='hashable >=1.3.2.0' --constraint='hashable +random-initial-seed' all --dry-run ; fi
321+
if [ $((! GHCJSARITH && HCNUMVER >= 90400 && HCNUMVER < 90600)) -ne 0 ] ; then cabal-plan topo | sort ; fi
313322
if [ $((! GHCJSARITH && HCNUMVER >= 90400 && HCNUMVER < 90600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='hashable >=1.3.2.0' --constraint='hashable +random-initial-seed' --dependencies-only -j2 all ; fi
314323
if [ $((! GHCJSARITH && HCNUMVER >= 90400 && HCNUMVER < 90600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='hashable >=1.3.2.0' --constraint='hashable +random-initial-seed' all ; fi
315324
if [ $((! GHCJSARITH && HCNUMVER >= 90400 && HCNUMVER < 90600)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='hashable >=1.3.2.0' --constraint='hashable +random-initial-seed' all ; fi

tree-diff.cabal

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 2.2
22
name: tree-diff
33
version: 0.3.0.1
4-
x-revision: 3
4+
x-revision: 4
55
synopsis: Diffing of (expression) trees.
66
category: Data, Testing
77
description:
@@ -57,8 +57,9 @@ tested-with:
5757
|| ==8.10.7
5858
|| ==9.0.2
5959
|| ==9.2.8
60-
|| ==9.4.5
61-
|| ==9.6.2
60+
|| ==9.4.7
61+
|| ==9.6.3
62+
|| ==9.8.1
6263
, GHCJS ==8.4
6364

6465
extra-source-files:
@@ -87,30 +88,30 @@ library
8788

8889
-- GHC boot libraries
8990
build-depends:
90-
, base >=4.5 && <4.19
91-
, bytestring ^>=0.9.2.1 || ^>=0.10.0.2 || ^>=0.11.0.0
91+
, base >=4.5 && <4.20
92+
, bytestring ^>=0.9.2.1 || ^>=0.10.0.2 || ^>=0.11.0.0 || ^>=0.12.0.2
9293
, containers ^>=0.4.2.1 || ^>=0.5.0.0 || ^>=0.6.0.1
93-
, deepseq ^>=1.3.0.0 || ^>=1.4.0.0
94+
, deepseq ^>=1.3.0.0 || ^>=1.4.0.0 || ^>=1.5.0.0
9495
, parsec ^>=3.1.13.0
9596
, pretty ^>=1.1.1.0
96-
, text ^>=1.2.3.0 || ^>=2.0
97-
, time >=1.4 && <1.5 || >=1.5.0.1 && <1.6 || >=1.6.0.1 && <1.7 || >=1.8.0.2 && <1.9 || >=1.9.3 && <1.13
97+
, text ^>=1.2.3.0 || ^>=2.0 || ^>=2.1
98+
, time ^>=1.4 || ^>=1.5.0.1 || ^>=1.6.0.1 || ^>=1.8.0.2 || ^>=1.9.3 || ^>=1.10 || ^>=1.11 || ^>=1.12
9899

99100
build-depends:
100101
, aeson ^>=1.4.6.0 || ^>=1.5.6.0 || ^>=2.0.0.0 || ^>=2.1.0.0 || ^>=2.2.0.0
101102
, ansi-terminal >=0.10 && <0.12 || ^>=1.0
102103
, ansi-wl-pprint ^>=0.6.8.2 || ^>=1.0.2
103-
, base-compat >=0 && <0.13 || ^>=0.13
104+
, base-compat ^>=0.10.5 || ^>=0.11 || ^>=0.12 || ^>=0.13
104105
, bytestring-builder ^>=0.10.8.2.0
105106
, hashable ^>=1.2.7.0 || ^>=1.3.0.0 || ^>=1.4.0.1
106107
, parsers ^>=0.12.10
107-
, primitive >=0.7.1.0 && <0.8 || ^>=0.8
108+
, primitive ^>=0.7.1.0 || ^>=0.8.0.0 || ^>=0.9.0.0
108109
, QuickCheck ^>=2.14.2
109110
, scientific ^>=0.3.6.2
110-
, semialign >=1.2.0.1 && <1.3 || ^>=1.3
111-
, strict >=0.4.0.1 && <0.5 || ^>=0.5
111+
, semialign ^>=1.2.0.1 || ^>=1.3
112+
, strict ^>=0.4.0.1 || ^>=0.5
112113
, tagged ^>=0.8.6
113-
, these >=1.1.1.1 && <1.2 || ^>=1.2
114+
, these ^>=1.1.1.1 || ^>=1.2
114115
, unordered-containers ^>=0.2.8.0
115116
, uuid-types ^>=1.0.3
116117
, vector ^>=0.12.0.0 || ^>=0.13.0.0
@@ -127,7 +128,7 @@ library
127128
if !impl(ghc >=7.10)
128129
build-depends:
129130
, nats ^>=1.1.2
130-
, transformers ^>=0.3.0.0 || ^>=0.4.2.0 || >=0.5.2.0 && <0.6 || ^>=0.6
131+
, transformers ^>=0.3.0.0 || ^>=0.4.2.0 || ^>=0.5.2.0 || ^>=0.6
131132
, void ^>=0.7.3
132133

133134
if (impl(ghc >=8) && !impl(ghc >=9.4))
@@ -175,7 +176,7 @@ test-suite tree-diff-test
175176

176177
-- extra dependencies
177178
build-depends:
178-
, tasty ^>=1.2 || ^>=1.3.1 || ^>=1.4.2
179+
, tasty ^>=1.2 || ^>=1.3.1 || ^>=1.4.2 || ^>=1.5
179180
, tasty-golden ^>=2.3.1.1
180181
, tasty-quickcheck ^>=0.10.1
181182
, trifecta >=2 && <2.2

0 commit comments

Comments
 (0)