summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-02-16 10:25:51 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2017-02-16 10:26:39 +0000
commit6686dc7298afba5fc0a8daa6f6f97c400861e4b7 (patch)
treeb06c6bd8dadf4abe6feb8a7e8118de1ca776cd53 /dev-haskell/constraints/files
parentdev-haskell/th-expand-syns: bump up to 0.4.2.0 (diff)
downloadgentoo-6686dc7298afba5fc0a8daa6f6f97c400861e4b7.tar.gz
gentoo-6686dc7298afba5fc0a8daa6f6f97c400861e4b7.tar.bz2
gentoo-6686dc7298afba5fc0a8daa6f6f97c400861e4b7.zip
dev-haskell/constraints: bump up to 0.8
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-haskell/constraints/files')
-rw-r--r--dev-haskell/constraints/files/constraints-0.4.1.3-ghc-8.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-haskell/constraints/files/constraints-0.4.1.3-ghc-8.patch b/dev-haskell/constraints/files/constraints-0.4.1.3-ghc-8.patch
new file mode 100644
index 000000000000..1b2f8169c45d
--- /dev/null
+++ b/dev-haskell/constraints/files/constraints-0.4.1.3-ghc-8.patch
@@ -0,0 +1,17 @@
+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
+