git.iko.soy/typeable/attoparsec
on master help sign in
Fix compilation under GHC 6.12.1
6472db7Bryan O'Sullivan
Data/Attoparsec/Combinator.hs+2−1
@@ -28,7 +28,8 @@ module Data.Attoparsec.Combinator
28 , many
28 , many
29 ) where
29 ) where
30
30
31−import Control.Applicative (Alternative(..), Applicative(..), liftA2, (*>), (<$>))
31+import Control.Applicative (Alternative, Applicative(..), empty, liftA2,
32+ (<|>), (*>), (<$>))
32
33
33-- | @choice ps@ tries to apply the actions in the list @ps@ in order,
34-- | @choice ps@ tries to apply the actions in the list @ps@ in order,
34-- until one of them succeeds. Returns the value of the succeeding
35-- until one of them succeeds. Returns the value of the succeeding