Skip to content
Snippets Groups Projects
Commit aa94528d authored by Ryan Scott's avatar Ryan Scott
Browse files

patch th-lift-instances-0.1.19 to build with containers-0.6.6

parent 510608bb
No related branches found
No related tags found
No related merge requests found
diff --git a/src/Instances/TH/Lift.hs b/src/Instances/TH/Lift.hs
index 2a4e8c8..af6a7b7 100644
--- a/src/Instances/TH/Lift.hs
+++ b/src/Instances/TH/Lift.hs
@@ -83,6 +83,8 @@ import Data.List.NonEmpty (NonEmpty (..))
#endif
-- Containers
+
+#if !MIN_VERSION_containers(0,6,6)
import qualified Data.Tree as Tree
#if MIN_VERSION_containers(5,10,1)
@@ -104,6 +106,7 @@ import qualified Data.Map as Map
import qualified Data.Sequence as Sequence
import qualified Data.Set as Set
#endif
+# endif
#if !MIN_VERSION_text(1,2,4)
-- Text
@@ -210,6 +213,7 @@ instance Lift a => Lift (NonEmpty a) where
-- Containers
--
+#if !MIN_VERSION_containers(0,6,6)
#if __GLASGOW_HASKELL__ >= 800
deriving instance Lift a => Lift (Tree.Tree a)
#else
@@ -249,6 +253,7 @@ instance Lift a => Lift (Set.Set a) where
s' = Set.toList s
LIFT_TYPED_DEFAULT
#endif
+# endif
#if !MIN_VERSION_text(1,2,4)
--------------------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment