commit: c9784dc6bf642e0da6d3a0815811bdf530bb6dba
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 22 23:09:24 2016 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Jan 22 23:10:57 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9784dc6
dev-haskell/testpack: tweak for QC-2.8.2
Package-Manager: portage-2.2.27
dev-haskell/testpack/files/testpack-2.1.3.0-QC-2.8.2.patch | 12 ++++++++++++
dev-haskell/testpack/testpack-2.1.3.0-r1.ebuild | 1 +
2 files changed, 13 insertions(+)
diff --git a/dev-haskell/testpack/files/testpack-2.1.3.0-QC-2.8.2.patch
b/dev-haskell/testpack/files/testpack-2.1.3.0-QC-2.8.2.patch
new file mode 100644
index 0000000..9ea5f8d
--- /dev/null
+++ b/dev-haskell/testpack/files/testpack-2.1.3.0-QC-2.8.2.patch
@@ -0,0 +1,12 @@
+diff --git a/src/Test/QuickCheck/Instances.hs
b/src/Test/QuickCheck/Instances.hs
+index 98367b7..f65eb37 100644
+--- a/src/Test/QuickCheck/Instances.hs
++++ b/src/Test/QuickCheck/Instances.hs
+@@ -30,2 +30,3 @@ import Data.Word
+
++#if ! MIN_VERSION_QuickCheck(2,8,2)
+ instance (Arbitrary k, Arbitrary v, Eq k, Ord k) => Arbitrary (Map.Map k v)
where
+@@ -37,2 +38,3 @@ instance (CoArbitrary k, CoArbitrary v, Eq k, Ord k) =>
CoArbitrary (Map.Map k v
+ coarbitrary = coarbitrary . Map.keys
++#endif
+
diff --git a/dev-haskell/testpack/testpack-2.1.3.0-r1.ebuild
b/dev-haskell/testpack/testpack-2.1.3.0-r1.ebuild
index 7168eb3..d5f79b5 100644
--- a/dev-haskell/testpack/testpack-2.1.3.0-r1.ebuild
+++ b/dev-haskell/testpack/testpack-2.1.3.0-r1.ebuild
@@ -31,4 +31,5 @@ DEPEND="${RDEPEND}
src_prepare() {
epatch "${FILESDIR}"/${P}-qc28.patch
epatch "${FILESDIR}"/${P}-HUnit-1.3.patch
+ epatch "${FILESDIR}"/${P}-QC-2.8.2.patch
}