hledger-lib-0.27: Core data types, parsers and functionality for the hledger accounting tools

Safe HaskellSafe
LanguageHaskell2010

Hledger.Utils.Parse

Synopsis

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.

parsewith :: Parsec [Char] () a -> String -> Either ParseError a Source

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

nonspace :: Stream [Char] m Char => ParsecT [Char] st m Char Source

spacenonewline :: Stream [Char] m Char => ParsecT [Char] st m Char Source

restofline :: Stream [Char] m Char => ParsecT [Char] st m String Source

eolof :: Stream [Char] m Char => ParsecT [Char] st m () Source