htoml-megaparsec-1.0.1.11: Parser for TOML files

Safe HaskellNone
LanguageHaskell2010

Text.Toml.Types

Synopsis

Documentation

type Table = HashMap Text Node Source #

The TOML Table is a mapping (HashMap) of Text keys to Node values.

emptyTable :: Table Source #

Contruct an empty Table.

type VTArray = Vector Table Source #

An array of Tables, implemented using a Vector.

type VArray = Vector Node Source #

A "value" array that may contain zero or more Nodes, implemented using a Vector.

data Node Source #

A Node may contain any type of value that may be put in a VArray.

Instances

Eq Node Source # 

Methods

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

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

Show Node Source # 

Methods

showsPrec :: Int -> Node -> ShowS #

show :: Node -> String #

showList :: [Node] -> ShowS #

Generic Node Source # 

Associated Types

type Rep Node :: * -> * #

Methods

from :: Node -> Rep Node x #

to :: Rep Node x -> Node #

NFData Node Source # 

Methods

rnf :: Node -> () #

type Rep Node Source # 

isExplicit :: Explicitness -> Bool Source #

Convenience function to get a boolean value.

insert :: TomlM m => Explicitness -> ([Text], Node) -> Table -> Parser m Table Source #

Inserts a table, Table, with the namespaced name, '[Text]', (which may be part of a table array) into a Table. It may result in an error in the ParsecT monad for redefinitions.

type Toml = State (Set [Text]) Source #

type TomlM m = MonadState (Set [Text]) m Source #

type Parser m a = MonadState (Set [Text]) m => ParsecT Void Text m a Source #