Copyright | © 2017 Parnell Springmeyer |
---|---|
License | All Rights Reserved |
Maintainer | Parnell Springmeyer <parnell@digitalmentat.com> |
Stability | stable |
Safe Haskell | Safe |
Language | Haskell2010 |
Attoparsec utilities
- takeALine :: Attoparsec.Text.Parser Text.Text
- class Foldable m => ParseLinesTill m where
- takeBlockBreak :: Attoparsec.Text.Parser ()
- skipEmptyLines :: Attoparsec.Text.Parser ()
Documentation
class Foldable m => ParseLinesTill m where Source #
stop :: forall a. Attoparsec.Text.Parser (m a) -> Attoparsec.Text.Parser (Either () [a]) Source #
Fail and reset position when a breaker is found
takeContent :: forall a b. Recursive m b a -> b -> Attoparsec.Text.Parser (Text.Text, [a]) Source #
parseLinesContextuallyTill :: forall a b. Attoparsec.Text.Parser a -> Recursive m b a -> b -> Attoparsec.Text.Parser [a] Source #
Save the content and parse as the default Plain Text or default Section Paragraph and try to parse the new block if the new block exists under the same node
parseLinesTill :: forall a. Attoparsec.Text.Parser a -> Attoparsec.Text.Parser (m a) -> Attoparsec.Text.Parser [a] Source #
ParseLinesTill (Either a) Source # | |
takeBlockBreak :: Attoparsec.Text.Parser () Source #
Is the current line a SectionBlock
break. A Line is a break