Gentoo Archives: gentoo-commits

From: "Mark Wright (gienah)" <gienah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-haskell/options/files: options-1.2.1-ghc-7.10.patch
Date: Thu, 01 Jan 2015 13:19:07
Message-Id: 20150101131902.A630EEA3A@oystercatcher.gentoo.org
1 gienah 15/01/01 13:19:02
2
3 Added: options-1.2.1-ghc-7.10.patch
4 Log:
5 Bump options to 1.2.1, patch for ghc 7.10
6
7 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 618E971F)
8
9 Revision Changes Path
10 1.1 dev-haskell/options/files/options-1.2.1-ghc-7.10.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/options/files/options-1.2.1-ghc-7.10.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/options/files/options-1.2.1-ghc-7.10.patch?rev=1.1&content-type=text/plain
14
15 Index: options-1.2.1-ghc-7.10.patch
16 ===================================================================
17 --- options-1.2.1-orig/lib/Options/Tokenize.hs 2014-12-14 16:34:53.000000000 +1100
18 +++ options-1.2.1/lib/Options/Tokenize.hs 2015-01-02 00:14:05.390013340 +1100
19 @@ -11,6 +11,7 @@
20 , tokenize
21 ) where
22
23 +import Control.Applicative
24 import Control.Monad.Error hiding (throwError)
25 import qualified Control.Monad.Error
26 import Control.Monad.State
27 @@ -53,6 +54,13 @@
28
29 newtype Tok a = Tok { unTok :: ErrorT String (StateT TokState Identity) a }
30
31 +instance Functor Tok where
32 + fmap = liftM
33 +
34 +instance Applicative Tok where
35 + pure = return
36 + (<*>) = ap
37 +
38 instance Monad Tok where
39 return = Tok . return
40 m >>= f = Tok (unTok m >>= unTok . f)