Safe Haskell | None |
---|---|
Language | Haskell2010 |
- parseOnly :: Parser a -> Text -> Either ParseError a
- tomlDoc :: Parser Table
- table :: Parser Table
- namedSection :: Parser ([Text], Node)
- tableHeader :: Parser [Text]
- tableArrayHeader :: Parser [Text]
- headerValue :: Parser [Text]
- assignment :: Parser (Text, TValue)
- value :: Parser TValue
- array :: Parser TValue
- boolean :: Parser TValue
- anyStr :: Parser TValue
- basicStr :: Parser TValue
- multiBasicStr :: Parser TValue
- literalStr :: Parser TValue
- multiLiteralStr :: Parser TValue
- datetime :: Parser TValue
- float :: Parser TValue
- integer :: Parser TValue
- arrayOf :: Parser TValue -> Parser TValue
- escSeq :: Parser Char
- unicodeHex :: Int -> Parser Char
- signed :: Num a => Parser a -> Parser a
- skipBlanks :: Parser ()
- isSpc :: Char -> Bool
- eol :: Parser ()
- module Text.Toml.Types
Documentation
parseOnly :: Parser a -> Text -> Either ParseError a Source
Convenience function for the test suite and GHCI.
namedSection :: Parser ([Text], Node) Source
tableHeader :: Parser [Text] Source
Parses a table header.
tableArrayHeader :: Parser [Text] Source
Parses a table array header.
headerValue :: Parser [Text] Source
Parses the value of any header (names separated by dots), into a list of Text
.
assignment :: Parser (Text, TValue) Source
Parses a key-value assignment.
Attoparsec double
parses scientific "e" notation; reimplement according to Toml spec.
Utility functions
arrayOf :: Parser TValue -> Parser TValue Source
Parses the elements of an array, while restricting them to a certain type.
unicodeHex :: Int -> Parser Char Source
Parser for unicode hexadecimal values of representation length n
.
skipBlanks :: Parser () Source
Parses the (rest of the) line including an EOF, whitespace and comments.
module Text.Toml.Types