Skip to content

Support ghc-9.14 #102

@erikd

Description

@erikd

If I add the following to the cabal.project file:

allow-newer:
  , *:base
  , *:template-haskell

and then update the dependencies:

diff --git a/tree-diff.cabal b/tree-diff.cabal
index 09f884c..3aa193e 100644
--- a/tree-diff.cabal
+++ b/tree-diff.cabal
@@ -88,25 +88,25 @@ library
 
   -- GHC boot libraries
   build-depends:
-    , base        >=4.5       && <4.21
+    , base        >=4.5       && <4.23
     , bytestring  ^>=0.9.2.1  || ^>=0.10.0.2 || ^>=0.11.0.0 || ^>=0.12.0.2
-    , containers  ^>=0.4.2.1  || ^>=0.5.0.0  || ^>=0.6.0.1  || ^>=0.7
+    , containers  ^>=0.4.2.1  || ^>=0.5.0.0  || ^>=0.6.0.1  || ^>=0.7       || ^>=0.8
     , deepseq     ^>=1.3.0.0  || ^>=1.4.0.0  || ^>=1.5.0.0
     , parsec      ^>=3.1.13.0
     , pretty      ^>=1.1.1.0
     , text        ^>=1.2.3.0  || ^>=2.0      || ^>=2.1
-    , time        ^>=1.4      || ^>=1.5.0.1  || ^>=1.6.0.1  || ^>=1.8.0.2  || ^>=1.9.3 || ^>=1.10 || ^>=1.11 || ^>=1.12 || ^>=1.13 || >
+    , time        ^>=1.4      || ^>=1.5.0.1  || ^>=1.6.0.1  || ^>=1.8.0.2  || ^>=1.9.3 || ^>=1.10 || ^>=1.11 || ^>=1.12 || ^>=1.13 || >
 
   build-depends:
     , aeson                 ^>=1.4.6.0    || ^>=1.5.6.0  || ^>=2.0.0.0 || ^>=2.1.0.0 || ^>=2.2.0.0
     , ansi-terminal         >=0.10        && <0.12       || ^>=1.0     || ^>=1.1
     , ansi-wl-pprint        ^>=0.6.8.2    || ^>=1.0.2
-    , base-compat           ^>=0.10.5     || ^>=0.11     || ^>=0.12    || ^>=0.13    || ^>=0.14
+    , base-compat           ^>=0.10.5     || ^>=0.11     || ^>=0.12    || ^>=0.13    || ^>=0.14    || ^>=0.15
     , bytestring-builder    ^>=0.10.8.2.0
-    , hashable              ^>=1.2.7.0    || ^>=1.3.0.0  || ^>=1.4.0.1
+    , hashable              ^>=1.2.7.0    || ^>=1.3.0.0  || ^>=1.4.0.1 || ^>=1.5
     , parsers               ^>=0.12.10
     , primitive             ^>=0.7.1.0    || ^>=0.8.0.0  || ^>=0.9.0.0
-    , QuickCheck            ^>=2.14.2     || ^>=2.15
+    , QuickCheck            ^>=2.14.2     || ^>=2.15     || ^>=2.16    || ^>=2.17
     , scientific            ^>=0.3.6.2
     , semialign             ^>=1.2.0.1    || ^>=1.3
     , strict                ^>=0.4.0.1    || ^>=0.5
@@ -178,7 +178,7 @@ test-suite tree-diff-test
   build-depends:
     , tasty             ^>=1.2     || ^>=1.3.1 || ^>=1.4.2 || ^>=1.5
     , tasty-golden      ^>=2.3.1.1
-    , tasty-quickcheck  ^>=0.10.1
+    , tasty-quickcheck  ^>=0.10.1  || ^>=0.11
     , trifecta          >=2        && <2.2
 
 benchmark tree-diff-bench
@@ -197,4 +197,4 @@ benchmark tree-diff-bench
   -- extra dependencies
   build-depends:
     , criterion  ^>=1.6.0.0
-    , Diff       ^>=0.4.0   || ^>=0.5
+    , Diff       ^>=0.4.0   || ^>=0.5   || ^>=1.0
~

then it builds with ghc-9.14.1 and passes all tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions