Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module defines the default syntax of format strings, generally described as "any part in braces is variable substitution".
Examples of valid variable substitutions are:
"Simple: {}"
"Numbered: {0}"
"Named: {var}"
"Specifying variable formatting: {var:+8.4}"
- parseFormat :: Text -> Either ParseError Format
- parseFormat' :: Text -> Format
- pBracesFormat :: Parser Format
Parse functions
parseFormat :: Text -> Either ParseError Format Source #
Parse string format definition.
parseFormat' :: Text -> Format Source #
Version of parseFormat which throws error
in case of syntax error in the formatting string.
Parsec functions
pBracesFormat :: Parser Format Source #
Parsec parser for string format.