htoml-megaparsec-2.1.0.5: 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

:: (VisualStream s, ShowErrorComponent e) 
=> ParseError s e

Parse error to render

-> String

Result of rendering

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

Since: megaparsec-5.0.0

data Node #

Instances

Instances details
Generic Node 
Instance details

Defined in Text.Toml.Types

Methods

from :: Node -> Rep Node x #

to :: Rep Node x -> Node #

Show Node 
Instance details

Defined in Text.Toml.Types

Methods

showsPrec :: Int -> Node -> ShowS #

show :: Node -> String #

showList :: [Node] -> ShowS #

NFData Node 
Instance details

Defined in Text.Toml.Types

Methods

rnf :: Node -> () #

Eq Node 
Instance details

Defined in Text.Toml.Types

Methods

(==) :: Node -> Node -> Bool #

(/=) :: Node -> Node -> Bool #

type Rep Node 
Instance details

Defined in Text.Toml.Types