Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- choice' :: Stream s m t => [ParsecT s u m a] -> ParsecT s u m a
- parsewith :: Parsec [Char] () a -> String -> Either ParseError a
- parseWithCtx :: Stream s m t => u -> ParsecT s u m a -> s -> m (Either ParseError a)
- fromparse :: Either ParseError a -> a
- parseerror :: ParseError -> a
- showParseError :: ParseError -> String
- showDateParseError :: ParseError -> String
- nonspace :: Stream [Char] m Char => ParsecT [Char] st m Char
- spacenonewline :: Stream [Char] m Char => ParsecT [Char] st m Char
- restofline :: Stream [Char] m Char => ParsecT [Char] st m String
- eolof :: Stream [Char] m Char => ParsecT [Char] st m ()
Documentation
choice' :: Stream s m t => [ParsecT s u m a] -> ParsecT s u m a Source
Backtracking choice, use this when alternatives share a prefix. Consumes no input if all choices fail.
parseWithCtx :: Stream s m t => u -> ParsecT s u m a -> s -> m (Either ParseError a) Source
fromparse :: Either ParseError a -> a Source
parseerror :: ParseError -> a Source
showParseError :: ParseError -> String Source