orgmode-parse-0.3.0: A collection of Attoparsec combinators for parsing org-mode flavored documents.

Copyright© 2017 Parnell Springmeyer
LicenseAll Rights Reserved
MaintainerParnell Springmeyer <parnell@digitalmentat.com>
Stabilitystable
Safe HaskellSafe
LanguageHaskell2010

Data.OrgMode.Parse.Attoparsec.Util.ParseLinesTill

Description

Attoparsec utilities

Synopsis

Documentation

class Foldable m => ParseLinesTill m where Source #

Methods

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 #

takeBlockBreak :: Attoparsec.Text.Parser () Source #

Is the current line a SectionBlock break. A Line is a break