dev-haskell/linear: allow new base-orphans-0.8

Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/761820
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich
2020-12-27 10:08:11 +00:00
parent 597a22dec7
commit b83efe1e00
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
--- a/src/Linear/Instances.hs
+++ b/src/Linear/Instances.hs
@@ -21,8 +21,10 @@ import Control.Monad.Zip
import Data.Complex
import Data.Orphans ()
+#if ! MIN_VERSION_base_orphans(0,8,3)
instance MonadZip Complex where
mzipWith = liftA2
instance MonadFix Complex where
mfix f = (let a :+ _ = f a in a) :+ (let _ :+ a = f a in a)
+#endif

View File

@@ -47,6 +47,8 @@ DEPEND="${RDEPEND}
>=dev-haskell/test-framework-hunit-0.3 )
"
PATCHES=("${FILESDIR}"/${P}-base-orphans-0.8.3.patch)
src_configure() {
haskell-cabal_src_configure \
--flag=-herbie \