slyfox 15/08/01 15:51:42 Added: drift-2.4.2-ghc-7.10.patch Log: Port to ghc-7.10. (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)
Revision Changes Path 1.1 dev-haskell/drift/files/drift-2.4.2-ghc-7.10.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/drift/files/drift-2.4.2-ghc-7.10.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/drift/files/drift-2.4.2-ghc-7.10.patch?rev=1.1&content-type=text/plain Index: drift-2.4.2-ghc-7.10.patch =================================================================== 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
