orgmode-parse-0.2.3: 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 HaskellNone
LanguageHaskell2010

Data.OrgMode.Parse.Attoparsec.Util

Description

Attoparsec utilities.

Synopsis

Documentation

skipOnlySpace :: Parser Text () Source #

Skip whitespace characters, only!

Data.Attoparsec.Text.skipSpace uses the isSpace predicate from Data.Char which also includes control characters such as a return and newline which we need to *not* consume in some cases during parsing.

nonHeadline :: Parser Text Text Source #

Parse a non-heading line of a section.