1 |
commit: b83efe1e00531db386b119fc00a13ab0353d9d8e |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 27 10:08:11 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 27 10:10:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b83efe1e |
7 |
|
8 |
dev-haskell/linear: allow new base-orphans-0.8 |
9 |
|
10 |
Reported-by: Toralf Förster |
11 |
Closes: https://bugs.gentoo.org/761820 |
12 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
.../linear/files/linear-1.20.9-base-orphans-0.8.3.patch | 13 +++++++++++++ |
16 |
dev-haskell/linear/linear-1.20.9.ebuild | 2 ++ |
17 |
2 files changed, 15 insertions(+) |
18 |
|
19 |
diff --git a/dev-haskell/linear/files/linear-1.20.9-base-orphans-0.8.3.patch b/dev-haskell/linear/files/linear-1.20.9-base-orphans-0.8.3.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..c497de0b36a |
22 |
--- /dev/null |
23 |
+++ b/dev-haskell/linear/files/linear-1.20.9-base-orphans-0.8.3.patch |
24 |
@@ -0,0 +1,13 @@ |
25 |
+--- a/src/Linear/Instances.hs |
26 |
++++ b/src/Linear/Instances.hs |
27 |
+@@ -21,8 +21,10 @@ import Control.Monad.Zip |
28 |
+ import Data.Complex |
29 |
+ import Data.Orphans () |
30 |
+ |
31 |
++#if ! MIN_VERSION_base_orphans(0,8,3) |
32 |
+ instance MonadZip Complex where |
33 |
+ mzipWith = liftA2 |
34 |
+ |
35 |
+ instance MonadFix Complex where |
36 |
+ mfix f = (let a :+ _ = f a in a) :+ (let _ :+ a = f a in a) |
37 |
++#endif |
38 |
|
39 |
diff --git a/dev-haskell/linear/linear-1.20.9.ebuild b/dev-haskell/linear/linear-1.20.9.ebuild |
40 |
index ebf29418bf0..2a04c908112 100644 |
41 |
--- a/dev-haskell/linear/linear-1.20.9.ebuild |
42 |
+++ b/dev-haskell/linear/linear-1.20.9.ebuild |
43 |
@@ -47,6 +47,8 @@ DEPEND="${RDEPEND} |
44 |
>=dev-haskell/test-framework-hunit-0.3 ) |
45 |
" |
46 |
|
47 |
+PATCHES=("${FILESDIR}"/${P}-base-orphans-0.8.3.patch) |
48 |
+ |
49 |
src_configure() { |
50 |
haskell-cabal_src_configure \ |
51 |
--flag=-herbie \ |