summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2016-04-10 09:49:00 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2016-04-10 09:49:09 +0100
commit9e36493bd35e1d5528c6da156b4fab8e90a99837 (patch)
treeee3787f057b6919ae8b3311d15a12f69a43f6821 /dev-haskell
parentsys-apps/findutils: Stable for HPPA (bug #576010). (diff)
downloadgentoo-9e36493bd35e1d5528c6da156b4fab8e90a99837.tar.gz
gentoo-9e36493bd35e1d5528c6da156b4fab8e90a99837.tar.bz2
gentoo-9e36493bd35e1d5528c6da156b4fab8e90a99837.zip
dev-haskell/drift: restored accidentally dropped patch, bug #579488
Reported-by: Toralf Förster Bug: https://bugs.gentoo.org/579488 Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-haskell')
-rw-r--r--dev-haskell/drift/files/drift-2.4.2-ghc-7.10.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-haskell/drift/files/drift-2.4.2-ghc-7.10.patch b/dev-haskell/drift/files/drift-2.4.2-ghc-7.10.patch
new file mode 100644
index 000000000000..c45a2945fd2a
--- /dev/null
+++ b/dev-haskell/drift/files/drift-2.4.2-ghc-7.10.patch
@@ -0,0 +1,22 @@
+diff --git a/src/ParseLib2.hs b/src/ParseLib2.hs
+index 730e4be..a7406fa 100644
+--- a/src/ParseLib2.hs
++++ b/src/ParseLib2.hs
+@@ -34,2 +34,3 @@ module ParseLib2
+ import Data.Char
++import Control.Applicative hiding ( many )
+ import Control.Monad
+@@ -49,2 +50,6 @@ instance Functor Parser where
+
++instance Applicative Parser where
++ pure = return
++ (<*>) = ap -- defined in Control.Monad
++
+ instance Monad Parser where
+@@ -58,2 +63,6 @@ instance Monad Parser where
+
++instance Alternative Parser where
++ (<|>) = mplus
++ empty = mzero
++
+ instance MonadPlus Parser where