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

type Table = HashMap Text Node #

data Node #

Instances
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 :: * -> * #

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

type TomlError = ParseErrorBundle Text Void #

type VTArray = Vector Table #

type VArray = Vector Node #