summaryrefslogtreecommitdiff
path: root/dev-haskell/linear/files/linear-1.20.9-base-orphans-0.8.3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-haskell/linear/files/linear-1.20.9-base-orphans-0.8.3.patch')
-rw-r--r--dev-haskell/linear/files/linear-1.20.9-base-orphans-0.8.3.patch13
1 files changed, 13 insertions, 0 deletions
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