Skip to content

Commit 608b934

Browse files
committed
Depend on data-array-byte for more ByteArray instances
1 parent 53ec7f5 commit 608b934

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
https://github.com/haskellari/tree-diff/issues/67
99

1010
- Add `Ord Expr` and `Ord OMap` instances
11+
- Depend on `data-array-byte` to provide more `ByteArray` instances
1112

1213
## 0.2.2
1314

src/Data/TreeDiff/Class.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ import Data.These (These (..))
109109
-- primitive
110110
import qualified Data.Primitive as Prim
111111

112-
#if MIN_VERSION_base(4,17,0)
112+
#if MIN_VERSION_base(4,9,0)
113113
import Data.Array.Byte (ByteArray (..))
114114
#endif
115115

@@ -602,7 +602,7 @@ instance (ToExpr a, ToExpr b) => ToExpr (These a b) where
602602
instance ToExpr Prim.ByteArray where
603603
toExpr ba = App "Prim.byteArrayFromList" [toExpr (Prim.foldrByteArray (:) [] ba :: [Word8])]
604604

605-
#if MIN_VERSION_base(4,17,0)
605+
#if MIN_VERSION_base(4,9,0)
606606
-- | @since 0.2.2
607607
instance ToExpr ByteArray where
608608
toExpr (ByteArray ba) = App "byteArrayFromList" [toExpr (Prim.foldrByteArray (:) [] (Prim.ByteArray ba) :: [Word8])]

tree-diff.cabal

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ library
128128
, transformers ^>=0.3.0.0 || ^>=0.4.2.0 || ^>=0.5.2.0
129129
, void ^>=0.7.3
130130

131+
if impl(ghc >= 8) && !impl(ghc >=9.4)
132+
build-depends: data-array-byte >=0.1.0.1 && <0.2
133+
131134
other-extensions:
132135
CPP
133136
ConstraintKinds

0 commit comments

Comments
 (0)