htoml-megaparsec-1.2.0.2: Parser for TOML files

Safe HaskellNone
LanguageHaskell2010

Text.Toml

Synopsis

Documentation

parseTomlDoc Source #

Arguments

:: FilePath

For error generation

-> Text

TOML source

-> Either TomlError Table 

Parse a Text that results in Either a TomlError containing the error message, or an internal representation of the document as a Table.

parseErrorPretty #

Arguments

:: (Ord t, ShowToken t, ShowErrorComponent e) 
=> ParseError t e

Parse error to render

-> String

Result of rendering

Pretty-print a ParseError. The rendered String always ends with a newline.

Since: 5.0.0