diff options
| author | Liguros - Gitlab CI/CD [master] <gitlab@liguros.net> | 2021-01-17 23:35:33 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [master] <gitlab@liguros.net> | 2021-01-17 23:35:33 +0000 |
| commit | 8e8120eabdd28020aa69c7a60505cce2edd20adc (patch) | |
| tree | 061bf0acdc672720e0bc3a2d575f67d25aedb2d8 /dev-haskell/linear | |
| parent | c16790af2c9b4cbc38e565d4311252193ff85484 (diff) | |
| download | baldeagleos-repo-21.1.2.tar.gz baldeagleos-repo-21.1.2.tar.xz baldeagleos-repo-21.1.2.zip | |
Updating liguros repo21.1.2
Diffstat (limited to 'dev-haskell/linear')
| -rw-r--r-- | dev-haskell/linear/files/linear-1.20.9-base-orphans-0.8.3.patch | 13 | ||||
| -rw-r--r-- | dev-haskell/linear/linear-1.20.9.ebuild | 2 |
2 files changed, 15 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 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 \ |
