Skip to content

Commit c4b31e3

Browse files
committed
Upgrade to GHC 9.8: bump dependencies, fix testsuite, CHANGELOG
Closes #35. Closes #36.
1 parent 3113e75 commit c4b31e3

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
ghc: ["8.10", "9.0", "9.2", "9.4", "9.6"]
15+
ghc: ["8.10", "9.0", "9.2", "9.4", "9.6", "9.8"]
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: "Setup haskell"

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
## next version
44

5-
* `NoThunks ThreadId` instance
5+
* `NoThunks ThreadId` instance.
6+
* Fix tests on ghc 9.8.
7+
Andreas Abel <[email protected]>
8+
* Tested with ghc 8.10 to 9.8.
69

710
## 0.1.4 -- 2023-03-27
811

cabal.project

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,3 @@ package nothunks
44
tests: True
55

66
test-show-details: direct
7-
8-
-- TODO: remove once hedgehog is compatible with ghc-9.6
9-
if impl(ghc >= 9.6)
10-
allow-newer: hedgehog:template-haskell

nothunks.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ library
4949
, ghc-heap
5050

5151
if flag(bytestring)
52-
build-depends: bytestring >= 0.10 && < 0.12
52+
build-depends: bytestring >= 0.10 && < 0.13
5353
if flag(text)
54-
build-depends: text >= 1.2 && < 1.3 || >= 2 && < 2.1
54+
build-depends: text >= 1.2 && < 1.3 || >= 2 && < 2.2
5555
if flag(vector)
5656
build-depends: vector >= 0.12 && < 0.14
5757

@@ -77,9 +77,9 @@ test-suite nothunks-test
7777
, ghc-prim
7878

7979
-- Additional dependencies
80-
, hedgehog >= 1.1 && < 1.3
80+
, hedgehog >= 1.1 && < 1.5
8181
, random >= 1.1 && < 1.3
82-
, tasty >= 1.3 && < 1.5
82+
, tasty >= 1.3 && < 1.6
8383
, tasty-hedgehog >= 1.1 && < 1.5
8484

8585
hs-source-dirs: test

test/Test/NoThunks/Class.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,11 @@ instance (FromModel a, FromModel b) => FromModel (a, b) where
213213
PairThunk _ -> NotWHNF ctxt'
214214
PairDefined a b -> constrNF [modelIsNF ctxt' a, modelIsNF ctxt' b]
215215
where
216+
#if MIN_VERSION_GLASGOW_HASKELL(9,8,0,0)
217+
ctxt' = "Tuple2" : ctxt
218+
#else
216219
ctxt' = "(,)" : ctxt
220+
#endif
217221

218222
fromModel (PairThunk p) k = fromModel p $ \p' -> k (if ack 3 3 > 0 then p' else p')
219223
fromModel (PairDefined a b) k = fromModel a $ \a' ->

0 commit comments

Comments
 (0)