You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-haskell/constraints/files/constraints-0.4.1.3-ghc-8.p...

18 lines
569 B

diff --git a/Data/Constraint.hs b/Data/Constraint.hs
index 84d67c0..a104f51 100644
--- a/Data/Constraint.hs
+++ b/Data/Constraint.hs
@@ -79,3 +79,7 @@ import Data.Data
#endif
+#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 707
+import GHC.Exts (Constraint)
+#else
import GHC.Prim (Constraint)
+#endif
@@ -375,3 +379,3 @@ instance Class () (b :=> a) where cls = Sub Dict
instance Class b a => () :=> Class b a where ins = Sub Dict
-instance (b :=> a) => () :=> b :=> a where ins = Sub Dict
+instance (b :=> a) => () :=> (b :=> a) where ins = Sub Dict