Skip to content

Commit 3bcd403

Browse files
authored
Merge pull request #122 from fizruk/ghc-9.4b
Allow base-4.17
2 parents d2573ce + b4f0937 commit 3bcd403

File tree

2 files changed

+10
-25
lines changed

2 files changed

+10
-25
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 8 additions & 24 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.20220609
11+
# version: 0.15.20220822
1212
#
13-
# REGENDATA ("0.15.20220609",["github","cabal.project"])
13+
# REGENDATA ("0.15.20220822",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,11 +32,11 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.4.0.20220523
35+
- compiler: ghc-9.4.1
3636
compilerKind: ghc
37-
compilerVersion: 9.4.0.20220523
37+
compilerVersion: 9.4.1
3838
setup-method: ghcup
39-
allow-failure: true
39+
allow-failure: false
4040
- compiler: ghc-9.2.3
4141
compilerKind: ghc
4242
compilerVersion: 9.2.3
@@ -85,17 +85,16 @@ jobs:
8585
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
8686
if [ "${{ matrix.setup-method }}" = ghcup ]; then
8787
mkdir -p "$HOME/.ghcup/bin"
88-
curl -sL https://downloads.haskell.org/ghcup/0.1.17.8/x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
88+
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
8989
chmod a+x "$HOME/.ghcup/bin/ghcup"
90-
if $HEADHACKAGE; then "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml; fi
9190
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
9291
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
9392
else
9493
apt-add-repository -y 'ppa:hvr/ghc'
9594
apt-get update
9695
apt-get install -y "$HCNAME"
9796
mkdir -p "$HOME/.ghcup/bin"
98-
curl -sL https://downloads.haskell.org/ghcup/0.1.17.8/x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
97+
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
9998
chmod a+x "$HOME/.ghcup/bin/ghcup"
10099
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
101100
fi
@@ -128,7 +127,7 @@ jobs:
128127
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
129128
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
130129
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
131-
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
130+
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
132131
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
133132
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
134133
env:
@@ -157,18 +156,6 @@ jobs:
157156
repository hackage.haskell.org
158157
url: http://hackage.haskell.org/
159158
EOF
160-
if $HEADHACKAGE; then
161-
cat >> $CABAL_CONFIG <<EOF
162-
repository head.hackage.ghc.haskell.org
163-
url: https://ghc.gitlab.haskell.org/head.hackage/
164-
secure: True
165-
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
166-
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
167-
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
168-
key-threshold: 3
169-
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
170-
EOF
171-
fi
172159
cat >> $CABAL_CONFIG <<EOF
173160
program-default-options
174161
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -229,9 +216,6 @@ jobs:
229216
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
230217
cat >> cabal.project <<EOF
231218
EOF
232-
if $HEADHACKAGE; then
233-
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
234-
fi
235219
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(http-api-data)$/; }' >> cabal.project.local
236220
cat cabal.project
237221
cat cabal.project.local

http-api-data.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
cabal-version: >= 1.10
22
name: http-api-data
33
version: 0.5
4+
x-revision: 1
45

56
synopsis: Converting to/from HTTP API data like URL pieces, headers and query parameters.
67
category: Web
@@ -44,7 +45,7 @@ library
4445
include-dirs: include/
4546

4647
-- GHC bundled
47-
build-depends: base >= 4.9 && < 4.17
48+
build-depends: base >= 4.9 && < 4.18
4849
, bytestring >= 0.10.8.1 && < 0.12
4950
, containers >= 0.5.7.1 && < 0.7
5051
, text >= 1.2.3.0 && < 1.3 || >=2.0 && <2.1

0 commit comments

Comments
 (0)