th-lift-instances 0.1.13 → 0.1.14
raw patch · 2 files changed
+5/−1 lines, 2 filesdep ~bytestringdep ~textPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: bytestring, text
API changes (from Hackage documentation)
Files
- src/Instances/TH/Lift.hs +4/−0
- th-lift-instances.cabal +1/−1
src/Instances/TH/Lift.hs view
@@ -85,9 +85,11 @@ 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 (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.Lazy.Text where lift t = [| Text.Lazy.pack t' |] where t' = Text.Lazy.unpack t+#endif -------------------------------------------------------------------------------- -- ByteString
th-lift-instances.cabal view
@@ -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