backend-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Language.Ltml.Parser.Footnote.Combinators

Synopsis

Documentation

withSucceedingFootnotes :: Parser a -> FootnoteParser a Source #

Parse with any succeeding footnotes, consuming any empty lines between footnotes and finally.

The supplied argument parser must not succeed in-line, and must consume any final whitespace. I.e., it may only succeed after a newline plus any subsequent whitespace.

manyWithFootnotesTillSucc :: Parser a -> Parser () -> FootnoteParser [a] Source #

Like manyTillSucc, but parse any interleaved footnotes, and consume any number of empty lines between nodes (including footnotes) and finally.