htoml-megaparsec-2.1.0.4: 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 :: (VisualStream s, ShowErrorComponent e) => ParseError s e -> String #

type Table = HashMap Text Node #

data Node #

Instances

Instances details
Eq Node 
Instance details

Defined in Text.Toml.Types

Methods

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

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

Show Node 
Instance details

Defined in Text.Toml.Types

Methods

showsPrec :: Int -> Node -> ShowS #

show :: Node -> String #

showList :: [Node] -> ShowS #

Generic Node 
Instance details

Defined in Text.Toml.Types

Associated Types

type Rep Node :: Type -> Type #

Methods

from :: Node -> Rep Node x #

to :: Rep Node x -> Node #

NFData Node 
Instance details

Defined in Text.Toml.Types

Methods

rnf :: Node -> () #

type Rep Node 
Instance details

Defined in Text.Toml.Types