Safe Haskell | None |
---|---|
Language | Haskell2010 |
Parser of TOML language. Implemented with the help of megaparsec
package.
Synopsis
- newtype ParseException = ParseException Text
- parse :: Text -> Either ParseException TOML
- arrayP :: Parser [UValue]
- boolP :: Parser Bool
- dateTimeP :: Parser DateTime
- doubleP :: Parser Double
- integerP :: Parser Integer
- keyP :: Parser Key
- keyValP :: Parser (Key, AnyValue)
- textP :: Parser Text
- tableHeaderP :: Parser (Key, TOML)
- tomlP :: Parser TOML
Documentation
newtype ParseException Source #
Pretty parse exception for parsing toml.
Instances
Eq ParseException Source # | |
Defined in Toml.Parser (==) :: ParseException -> ParseException -> Bool # (/=) :: ParseException -> ParseException -> Bool # | |
Show ParseException Source # | |
Defined in Toml.Parser showsPrec :: Int -> ParseException -> ShowS # show :: ParseException -> String # showList :: [ParseException] -> ShowS # |
tableHeaderP :: Parser (Key, TOML) Source #