Skip to content

Commit 737eaf0

Browse files
danwdartphadej
authored andcommitted
Build on ghc 9.2
1 parent b52e1e5 commit 737eaf0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/Data/TreeDiff/Class.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,10 @@ instance ToExpr a => ToExpr (Mon.First a) where
379379
instance ToExpr a => ToExpr (Mon.Last a) where
380380

381381
-- ...
382+
#if !MIN_VERSION_base(4,16,0)
382383
instance ToExpr a => ToExpr (Semi.Option a) where
383384
toExpr (Semi.Option x) = App "Option" [toExpr x]
385+
#endif
384386
instance ToExpr a => ToExpr (Semi.Min a) where
385387
toExpr (Semi.Min x) = App "Min" [toExpr x]
386388
instance ToExpr a => ToExpr (Semi.Max a) where

tree-diff.cabal

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ tested-with:
5555
|| ==8.8.4
5656
|| ==8.10.4
5757
|| ==9.0.1
58+
|| ==9.2.1
5859
, GHCJS ==8.4
5960

6061
extra-source-files:
@@ -83,22 +84,22 @@ library
8384

8485
-- GHC boot libraries
8586
build-depends:
86-
, base >=4.5 && <4.16
87+
, base >=4.5 && <4.17
8788
, bytestring ^>=0.9.2.1 || ^>=0.10.0.2 || ^>=0.11.0.0
8889
, containers ^>=0.4.2.1 || ^>=0.5.0.0 || ^>=0.6.0.1
8990
, deepseq ^>=1.3.0.0 || ^>=1.4.0.0
9091
, parsec ^>=3.1.13.0
9192
, pretty ^>=1.1.1.0
9293
, text ^>=1.2.3.0
93-
, time ^>=1.4 || ^>=1.5.0.1 || ^>=1.6.0.1 || ^>=1.8.0.2 || ^>=1.9.3
94+
, time ^>=1.4 || ^>=1.5.0.1 || ^>=1.6.0.1 || ^>=1.8.0.2 || ^>=1.9.3 || ^>=1.10 || ^>=1.11 || ^>=1.12
9495

9596
build-depends:
9697
, aeson ^>=1.4.6.0 || ^>=1.5.6.0 || ^>=2.0.0.0
9798
, ansi-terminal >=0.10 && <0.12
9899
, ansi-wl-pprint ^>=0.6.8.2
99100
, base-compat ^>=0.10.5 || ^>=0.11.0 || ^>=0.12
100101
, bytestring-builder ^>=0.10.8.2.0
101-
, hashable ^>=1.2.7.0 || ^>=1.3.0.0
102+
, hashable ^>=1.2.7.0 || ^>=1.3.0.0 || ^>=1.4.0.1
102103
, parsers ^>=0.12.10
103104
, primitive ^>=0.7.1.0
104105
, QuickCheck ^>=2.14.2
@@ -115,7 +116,7 @@ library
115116
build-depends: ghc-prim
116117

117118
if !impl(ghc >=8.0)
118-
build-depends: semigroups ^>=0.19.1
119+
build-depends: semigroups ^>=0.19.1 || ^>=0.20
119120

120121
if !impl(ghc >=7.8)
121122
build-depends: generic-deriving >=1.13.1 && <1.15

0 commit comments

Comments
 (0)