1 |
gienah 15/06/01 08:44:55 |
2 |
|
3 |
Added: asn1-data-0.7.1-ghc-7.10.patch |
4 |
Log: |
5 |
Thanks to Sergei Trofimovich (slyfox) for patching asn1-data-0.7.1-r1 for ghc 7.10.1 |
6 |
|
7 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 618E971F) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-haskell/asn1-data/files/asn1-data-0.7.1-ghc-7.10.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/asn1-data/files/asn1-data-0.7.1-ghc-7.10.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/asn1-data/files/asn1-data-0.7.1-ghc-7.10.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: asn1-data-0.7.1-ghc-7.10.patch |
16 |
=================================================================== |
17 |
diff --git a/Data/ASN1/Parse.hs b/Data/ASN1/Parse.hs |
18 |
index eeea2be..83bc80e 100644 |
19 |
--- a/Data/ASN1/Parse.hs |
20 |
+++ b/Data/ASN1/Parse.hs |
21 |
@@ -24 +24 @@ import Control.Monad.Error |
22 |
-import Control.Applicative ((<$>)) |
23 |
+import Control.Applicative ((<$>), Applicative) |
24 |
@@ -25,7 +25,7 @@ import Control.Applicative ((<$>)) |
25 |
|
26 |
-- | Parse ASN1 Monad |
27 |
newtype ParseASN1 a = P { runP :: ErrorT String (State [ASN1]) a } |
28 |
- deriving (Functor, Monad, MonadError String) |
29 |
+ deriving (Functor, Applicative, Monad, MonadError String) |
30 |
|
31 |
-- | run the parse monad over a stream and returns the result and the remaining ASN1 Stream. |
32 |
runParseASN1State :: ParseASN1 a -> [ASN1] -> Either String (a,[ASN1]) |