Skip to content

Commit aa9d2c9

Browse files
authored
Merge pull request #1073 from haskell/ghc-9.8
Ghc 9.8
2 parents 704a403 + 21e33f5 commit aa9d2c9

File tree

10 files changed

+55
-31
lines changed

10 files changed

+55
-31
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 15 additions & 6 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.17.20230929
11+
# version: 0.17.20231004
1212
#
13-
# REGENDATA ("0.17.20230929",["github","cabal.project"])
13+
# REGENDATA ("0.17.20231004",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,14 +32,19 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.6.2
35+
- compiler: ghc-9.8.0.20230929
3636
compilerKind: ghc
37-
compilerVersion: 9.6.2
37+
compilerVersion: 9.8.0.20230929
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.4.5
40+
- compiler: ghc-9.6.3
4141
compilerKind: ghc
42-
compilerVersion: 9.4.5
42+
compilerVersion: 9.6.3
43+
setup-method: ghcup
44+
allow-failure: false
45+
- compiler: ghc-9.4.7
46+
compilerKind: ghc
47+
compilerVersion: 9.4.7
4348
setup-method: ghcup
4449
allow-failure: false
4550
- compiler: ghc-9.2.8
@@ -87,6 +92,7 @@ jobs:
8792
mkdir -p "$HOME/.ghcup/bin"
8893
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
8994
chmod a+x "$HOME/.ghcup/bin/ghcup"
95+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
9096
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
9197
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
9298
else
@@ -96,6 +102,7 @@ jobs:
96102
mkdir -p "$HOME/.ghcup/bin"
97103
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
98104
chmod a+x "$HOME/.ghcup/bin/ghcup"
105+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
99106
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
100107
fi
101108
env:
@@ -265,6 +272,8 @@ jobs:
265272
echo " ghc-options: -Werror=missing-methods" >> cabal.project
266273
cat >> cabal.project <<EOF
267274
allow-newer: hermes-json:attoparsec-iso8601
275+
allow-newer: network-uri:deepseq
276+
allow-newer: attoparsec:ghc-prim
268277
EOF
269278
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(aeson|aeson-benchmarks|aeson-examples|attoparsec-aeson|attoparsec-iso8601|text-iso8601)$/; }' >> cabal.project.local
270279
cat cabal.project

aeson.cabal

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ tested-with:
1818
|| ==8.10.7
1919
|| ==9.0.2
2020
|| ==9.2.8
21-
|| ==9.4.5
22-
|| ==9.6.2
21+
|| ==9.4.7
22+
|| ==9.6.3
23+
|| ==9.8.1
2324

2425
synopsis: Fast JSON parsing and encoding
2526
cabal-version: 1.12
@@ -95,13 +96,13 @@ library
9596
-- GHC bundled libs
9697
build-depends:
9798
base >=4.10.0.0 && <5
98-
, bytestring >=0.10.8.2 && <0.12
99+
, bytestring >=0.10.8.2 && <0.13
99100
, containers >=0.5.10.2 && <0.7
100-
, deepseq >=1.4.3.0 && <1.5
101+
, deepseq >=1.4.3.0 && <1.6
101102
, exceptions >=0.10.4 && <0.11
102-
, ghc-prim >=0.5.0.0 && <0.11
103-
, template-haskell >=2.12.0.0 && <2.21
104-
, text >=1.2.3.0 && <1.3 || >=2.0 && <2.1
103+
, ghc-prim >=0.5.0.0 && <0.12
104+
, template-haskell >=2.12.0.0 && <2.22
105+
, text >=1.2.3.0 && <1.3 || >=2.0 && <2.2
105106
, time >=1.8.0.2 && <1.13
106107

107108
-- Compat
@@ -133,7 +134,7 @@ library
133134
, tagged >=0.8.7 && <0.9
134135
, text-iso8601 >=0.1 && <0.2
135136
, text-short >=0.1.5 && <0.2
136-
, th-abstraction >=0.5.0.0 && <0.6
137+
, th-abstraction >=0.5.0.0 && <0.7
137138
, these >=1.2 && <1.3
138139
, unordered-containers >=0.2.10.0 && <0.3
139140
, uuid-types >=1.0.5 && <1.1

attoparsec-aeson/attoparsec-aeson.cabal

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
cabal-version: 1.12
22
name: attoparsec-aeson
33
version: 2.2.0.0
4+
x-revision: 1
45
synopsis: Parsing of aeson's Value with attoparsec
56
description:
67
Parsing of aeson's Value with attoparsec, originally from aeson.
@@ -26,8 +27,9 @@ tested-with:
2627
|| ==8.10.7
2728
|| ==9.0.2
2829
|| ==9.2.8
29-
|| ==9.4.5
30-
|| ==9.6.2
30+
|| ==9.4.7
31+
|| ==9.6.3
32+
|| ==9.8.1
3133

3234
library
3335
hs-source-dirs: src
@@ -46,11 +48,11 @@ library
4648
aeson >=2.2.0.0 && <2.3
4749
, attoparsec >=0.14.2 && <0.15
4850
, base >=4.10.0.0 && <5
49-
, bytestring >=0.10.8.2 && <0.12
51+
, bytestring >=0.10.8.2 && <0.13
5052
, integer-conversion >=0.1 && <0.2
5153
, primitive >=0.8.0.0 && <0.9
5254
, scientific >=0.3.7.0 && <0.4
53-
, text >=1.2.3.0 && <1.3 || >=2.0 && <2.1
55+
, text >=1.2.3.0 && <1.3 || >=2.0 && <2.2
5456
, vector >=0.12.0.1 && <0.14
5557

5658
source-repository head

attoparsec-iso8601/attoparsec-iso8601.cabal

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ tested-with:
2424
|| ==8.10.7
2525
|| ==9.0.2
2626
|| ==9.2.8
27-
|| ==9.4.5
28-
|| ==9.6.2
27+
|| ==9.4.7
28+
|| ==9.6.3
29+
|| ==9.8.1
2930

3031
extra-source-files:
3132
changelog.md
@@ -43,7 +44,7 @@ library
4344
attoparsec >=0.14.2 && <0.15
4445
, base >=4.10.0.0 && <5
4546
, integer-conversion >=0.1 && <0.2
46-
, text >=1.2.3.0 && <1.3.0.0 || >=2.0 && <2.1
47+
, text >=1.2.3.0 && <1.3.0.0 || >=2.0 && <2.2
4748
, time >=1.6.0.1 && <1.13
4849
, time-compat >=1.9.4 && <1.10
4950

benchmarks/aeson-benchmarks.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ tested-with:
1010
|| ==8.10.7
1111
|| ==9.0.2
1212
|| ==9.2.8
13-
|| ==9.4.5
14-
|| ==9.6.2
13+
|| ==9.4.7
14+
|| ==9.6.3
15+
|| ==9.8.1
1516

1617
flag tasty-bench
1718
description: Use tasty-bench, otherwise criterion

cabal.haskell-ci

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
branches: master
22
cabal-check: False
33
docspec: True
4+
head-hackage: False
45

56
-- due hermes-json depending on attoparsec-iso8601
67
install-dependencies: False

cabal.project

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ allow-newer: hermes-json:attoparsec-iso8601
1212

1313
-- packages: https://hackage.haskell.org/package/libperf-0.1/candidate/libperf-0.1.tar.gz
1414
-- packages: https://hackage.haskell.org/package/tasty-perfbench-0.1/candidate/tasty-perfbench-0.1.tar.gz
15+
16+
-- https://github.com/haskell/network-uri
17+
allow-newer: network-uri:deepseq
18+
19+
-- https://github.com/haskell/attoparsec/issues/223
20+
allow-newer: attoparsec:ghc-prim

examples/aeson-examples.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ tested-with:
1616
|| ==8.10.7
1717
|| ==9.0.2
1818
|| ==9.2.8
19-
|| ==9.4.5
20-
|| ==9.6.2
19+
|| ==9.4.7
20+
|| ==9.6.3
21+
|| ==9.8.1
2122

2223
library twitter-generic
2324
default-language: Haskell2010

src/Data/Aeson/Internal/Text.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Data.ByteString (ByteString)
88
import qualified Data.Text as T
99

1010
#if MIN_VERSION_text(2,0,0)
11-
import Data.Text.Array (Array (..))
11+
import qualified Data.Text.Array as A
1212
import qualified Data.Text.Internal as T (Text (..))
1313

1414
import qualified Data.ByteString.Short.Internal as SBS
@@ -27,7 +27,7 @@ unsafeDecodeASCII :: ByteString -> T.Text
2727

2828
#if MIN_VERSION_text(2,0,0)
2929
unsafeDecodeASCII bs = withBS bs $ \_fp len -> if len == 0 then T.empty else
30-
let !(SBS.SBS arr) = SBS.toShort bs in T.Text (ByteArray arr) 0 len
30+
let !(SBS.SBS arr) = SBS.toShort bs in T.Text (A.ByteArray arr) 0 len
3131

3232
#else
3333
unsafeDecodeASCII = TE.decodeLatin1

text-iso8601/text-iso8601.cabal

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
cabal-version: 1.12
22
name: text-iso8601
33
version: 0.1
4+
x-revision: 1
45
synopsis: Converting time to and from ISO 8601 text.
56
description:
67
Converting time to and from IS0 8601 text.
@@ -25,8 +26,9 @@ tested-with:
2526
|| ==8.10.7
2627
|| ==9.0.2
2728
|| ==9.2.8
28-
|| ==9.4.5
29-
|| ==9.6.2
29+
|| ==9.4.7
30+
|| ==9.6.3
31+
|| ==9.8.1
3032

3133
extra-source-files: changelog.md
3234

@@ -46,7 +48,7 @@ library
4648
build-depends:
4749
base >=4.10.0.0 && <5
4850
, integer-conversion >=0.1 && <0.2
49-
, text >=1.2.3.0 && <1.3.0.0 || >=2.0 && <2.1
51+
, text >=1.2.3.0 && <1.3.0.0 || >=2.0 && <2.2
5052
, time >=1.6.0.1 && <1.13
5153
, time-compat >=1.9.4 && <1.10
5254

@@ -66,7 +68,7 @@ test-suite text-iso8601-tests
6668
build-depends:
6769
QuickCheck >=2.14.3 && <2.15
6870
, quickcheck-instances >=0.3.29.1 && <0.4
69-
, tasty >=1.4.3 && <1.5
71+
, tasty >=1.4.3 && <1.6
7072
, tasty-hunit >=0.10.0.3 && <0.11
7173
, tasty-quickcheck >=0.10.2 && <0.11
7274

0 commit comments

Comments
 (0)