summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBennoFuenfstueck <>2019-08-13 20:13:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2019-08-13 20:13:00 (GMT)
commitc91ff85a968949625e9d01f249ee3a8c03adef2a (patch)
treeecbf76945762728cf6cbe3249717c137e9ea7092
parent5c92d4fbf35f9f69b63314550ceb819cd7fe4333 (diff)
version 0.1.14HEAD0.1.14master
-rw-r--r--src/Instances/TH/Lift.hs4
-rw-r--r--th-lift-instances.cabal2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/Instances/TH/Lift.hs b/src/Instances/TH/Lift.hs
index c7f3f21..5936eda 100644
--- a/src/Instances/TH/Lift.hs
+++ b/src/Instances/TH/Lift.hs
@@ -85,9 +85,11 @@ import qualified Data.Sequence as Sequence
import qualified Data.Set as Set
import qualified Data.Tree as Tree
+#if !MIN_VERSION_text(1,2,4)
-- Text
import qualified Data.Text as Text
import qualified Data.Text.Lazy as Text.Lazy
+#endif
-- ByteString
import qualified Data.ByteString as ByteString
@@ -199,6 +201,7 @@ instance Lift a => Lift (Set.Set a) where
instance Lift a => Lift (Tree.Tree a) where
lift (Tree.Node x xs) = [| Tree.Node x xs |]
+#if !MIN_VERSION_text(1,2,4)
--------------------------------------------------------------------------------
-- Text
instance Lift Text.Text where
@@ -208,6 +211,7 @@ instance Lift Text.Text where
instance Lift Text.Lazy.Text where
lift t = [| Text.Lazy.pack t' |] where
t' = Text.Lazy.unpack t
+#endif
--------------------------------------------------------------------------------
-- ByteString
diff --git a/th-lift-instances.cabal b/th-lift-instances.cabal
index 7f09eb1..288de5d 100644
--- a/th-lift-instances.cabal
+++ b/th-lift-instances.cabal
@@ -1,5 +1,5 @@
name: th-lift-instances
-version: 0.1.13
+version: 0.1.14
cabal-version: >=1.10
build-type: Simple
license: BSD3