indents-0.1.0: indentation sensitive parser-combinators for parsec

Text.Parsec.Indent

Synopsis

Documentation

block :: (Stream s (StateT SourcePos m) Char, Monad m) => IndentParserT s u m a -> IndentParserT s u m [a]Source

Parses a block of lines at the same indentation level

lineFold :: (Stream s (StateT SourcePos m) Char, Monad m) => IndentParserT s u m a -> IndentParserT s u m [a]Source

Continues parsing indented below a line

runIndent :: Monad m => SourceName -> StateT SourcePos m a -> m aSource

Run the result of an indentation sensative parse