Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
module Control.Applicative
module Data.Traversable
data ParseError Source
parse :: (Eq tt, HasSourcePos td) => Parser s tt td a -> [(tt, td)] -> Either ParseError a Source
parse' :: (Eq tt, HasSourcePos td) => Parser s tt td a -> [(tt, td)] -> (Either ParseError a, [(tt, td)]) Source
accept' :: (Eq tt, HasSourcePos td) => Parser s tt td a -> [(tt, td)] -> Maybe ParseError infix 4 Source
between :: Applicative f => f a -> f b -> f c -> f c Source
choice :: Alternative f => [f a] -> f a Source
option :: Alternative f => a -> f a -> f a Source
sepBy :: Alternative f => f a -> f b -> f [a] Source
updatePosString :: SourcePos -> String -> SourcePos Source
getPosition :: HasSourcePos td => Parser s tt td SourcePos Source