Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Core data types and parsers.
- data FreeText
- endOfFieldParser :: Parser ()
- freeTextParser :: Parser FreeText
- mkFreeText :: MonadFail m => String -> m FreeText
Documentation
endOfFieldParser :: Parser () Source #
A field is terminated -
followed by some free text that needs to
be further parsed. If the next character is not a -
this signifies the end
of the message and the main parser will expected a ')'.
This is specially usefull when the parsed field may or may not be a terminal field.
TODO: consider using this for all fields.