Skip to content

Commit 4dbf1be

Browse files
authored
Merge pull request #103 from haskellari/ghc-9.14
Cleanups, GHC-9.14 support
2 parents 325817d + f09e664 commit 4dbf1be

1 file changed

Lines changed: 20 additions & 9 deletions

File tree

tree-diff.cabal

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
cabal-version: 2.2
22
name: tree-diff
3-
version: 0.3.4
4-
x-revision: 2
3+
version: 0.3.4.1
54
synopsis: Diffing of (expression) trees.
65
category: Data, Testing
76
description:
@@ -53,8 +52,9 @@ tested-with:
5352
|| ==9.4.8
5453
|| ==9.6.7
5554
|| ==9.8.4
56-
|| ==9.10.2
55+
|| ==9.10.3
5756
|| ==9.12.2
57+
|| ==9.14.1
5858

5959
extra-source-files:
6060
fixtures/exfoo.expr
@@ -67,6 +67,11 @@ source-repository head
6767
type: git
6868
location: https://github.com/phadej/tree-diff.git
6969

70+
flag base-ge-4-17
71+
description: @base >=4.17@ (GHC-9.4)
72+
default: True
73+
manual: False
74+
7075
library
7176
exposed-modules:
7277
Data.TreeDiff
@@ -82,14 +87,14 @@ library
8287

8388
-- GHC boot libraries
8489
build-depends:
85-
, base >=4.12.0.0 && <4.22
90+
, base >=4.12.0.0 && <4.23
8691
, bytestring ^>=0.10.8.2 || ^>=0.11.0.0 || ^>=0.12.0.2
87-
, containers ^>=0.6.0.1 || ^>=0.7
92+
, containers ^>=0.6.0.1 || ^>=0.7 || ^>=0.8
8893
, deepseq ^>=1.4.4.0 || ^>=1.5.0.0
8994
, parsec ^>=3.1.13.0
9095
, pretty ^>=1.1.1.0
9196
, text ^>=1.2.3.0 || ^>=2.0 || ^>=2.1
92-
, time ^>=1.8.0.2 || ^>=1.9.3 || ^>=1.10 || ^>=1.11 || ^>=1.12 || ^>=1.14
97+
, time ^>=1.8.0.2 || ^>=1.9.3 || ^>=1.10 || ^>=1.11 || ^>=1.12 || ^>=1.14 || ^>=1.16
9398

9499
build-depends:
95100
, aeson ^>=2.2.0.0
@@ -98,7 +103,7 @@ library
98103
, hashable ^>=1.4.4.0 || ^>=1.5.0.0
99104
, parsers ^>=0.12.11
100105
, primitive ^>=0.9.0.0
101-
, QuickCheck ^>=2.14.2 || ^>=2.15 || ^>=2.16.0.0
106+
, QuickCheck ^>=2.14.2 || ^>=2.15 || ^>=2.16.0.0 || ^>=2.18.0.0
102107
, scientific ^>=0.3.8.0
103108
, semialign ^>=1.3.1
104109
, strict ^>=0.5
@@ -108,8 +113,8 @@ library
108113
, uuid-types ^>=1.0.6
109114
, vector ^>=0.13.1.0
110115

111-
if (impl(ghc >=8) && !impl(ghc >=9.4))
112-
build-depends: data-array-byte ^>=0.1.0.1
116+
if !flag(base-ge-4-17)
117+
build-depends: data-array-byte >=0.1.0.1 && <0.2
113118

114119
other-extensions:
115120
CPP
@@ -124,6 +129,12 @@ library
124129
hs-source-dirs: src
125130
default-language: Haskell2010
126131

132+
if flag(base-ge-4-17)
133+
build-depends: base >=4.17
134+
135+
else
136+
build-depends: base <4.17
137+
127138
test-suite tree-diff-test
128139
default-language: Haskell2010
129140
type: exitcode-stdio-1.0

0 commit comments

Comments
 (0)