summaryrefslogtreecommitdiff
path: root/dev-haskell/linear
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-01 21:06:00 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-01 21:06:00 +0000
commit129160ec854dca4c3fedb5bcfbcb56930371da0f (patch)
tree53bf797418ac5e9b99c41ca0382c87b82421e5de /dev-haskell/linear
parent441d1370330332b7d78f238d2f5e13f7aed5e4e0 (diff)
gentoo new year resync : 01.01.2021
Diffstat (limited to 'dev-haskell/linear')
-rw-r--r--dev-haskell/linear/Manifest3
-rw-r--r--dev-haskell/linear/files/linear-1.20.9-base-orphans-0.8.3.patch13
-rw-r--r--dev-haskell/linear/linear-1.20.9.ebuild2
3 files changed, 17 insertions, 1 deletions
diff --git a/dev-haskell/linear/Manifest b/dev-haskell/linear/Manifest
index 5c47c92cc726..f034edfd1357 100644
--- a/dev-haskell/linear/Manifest
+++ b/dev-haskell/linear/Manifest
@@ -1,3 +1,4 @@
+AUX linear-1.20.9-base-orphans-0.8.3.patch 350 BLAKE2B 59f54e2808e4b67e83418f72c96995eacb610496a94fcbe8431be188181f562ddfda26de2a2883b3e621b73e172c92d9a849cc4419c826f60d145fbc48942acf SHA512 979bc685b09f5adb7bf40eaac9121f2d0fae0add1ac70770a10d99ee9a0711fb0a107d3831b1edf8791a3b9a005fb81bf13857fcc590686dce78c3a2aa52284e
DIST linear-1.20.9.tar.gz 49250 BLAKE2B ae51a3d7c7570ffa2e43ba9c7170c53f010050ab83ffe5f99f6717c76c4b78e462919f3938a0b7db5f654d4a65241abe87dc167ac5dba78db0097d8a806ee33d SHA512 4b3fc0d1f0cfc79b67cb3c0fe823ca7f1f02b7b3deab98c32ec56b12f5764a6a18db9cbe2218e91b3efa5deea6675d4ddf166a1600a9aa8b7ad3f1da68cb6f52
-EBUILD linear-1.20.9.ebuild 2211 BLAKE2B 432075936c693e678a568f85155f0dc47b6e3e8fad104ee9d02ee81214ff1f44e348147b7053314cf91d56e8d8f47e2960860577c2afaae6a87fcac2c6bd0151 SHA512 2d81f87e5b427eb1904ce0d164b262776cfebcc24a1d04be22aadcb39ee83501eaf6f3af05b5c1d7a43cd6037dceb9dbd7868861773e6d74d048495789a339b4
+EBUILD linear-1.20.9.ebuild 2266 BLAKE2B 8e0a3e3b0b7fb41f5f61cf69dece6802db610bcb0c16514939060073f3e6ed8bc112a96e52506f46533f9d34aa9b7a6927fdb61b1354c4ef4994075f90c1eed2 SHA512 a69bbb2e17a82f7edb9d312d514fdc128606ae544a408ddc2c9da980612646b65bcbededf6dbc2b7623695a54780f9029f80e0d64297d92b2b9b9e8faff9db2a
MISC metadata.xml 608 BLAKE2B 8ed930ec4abd2b09493c29bfeb3c29599f27e2082f7f627801800453ca89ddac037d5832f7995b1a65e81af5fa42ff091397dd762c7f614716b3a11512f75394 SHA512 69f2d315538225a3e43f805a857521803f1a68a928baad43a5197adf4cd2fcac36b1f44fd8714da7ae2c38ec973795689bf3859570b215b997483421b9c9ddbc
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
new file mode 100644
index 000000000000..c497de0b36a4
--- /dev/null
+++ b/dev-haskell/linear/files/linear-1.20.9-base-orphans-0.8.3.patch
@@ -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
diff --git a/dev-haskell/linear/linear-1.20.9.ebuild b/dev-haskell/linear/linear-1.20.9.ebuild
index ebf29418bf02..2a04c9081129 100644
--- a/dev-haskell/linear/linear-1.20.9.ebuild
+++ b/dev-haskell/linear/linear-1.20.9.ebuild
@@ -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 \