hledger-lib-0.27.1: 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.

parseWithCtx :: Stream s m t => u -> ParsecT s u m a -> s -> m (Either ParseError a) Source

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