tomland-1.0.0: Bidirectional TOML serialization

Safe HaskellNone
LanguageHaskell2010

Toml.Parser

Description

Parser for text to TOML AST.

Synopsis

Documentation

newtype ParseException Source #

Pretty parse exception for parsing toml.

Constructors

ParseException Text 
Instances
Eq ParseException Source # 
Instance details

Defined in Toml.Parser

Show ParseException Source # 
Instance details

Defined in Toml.Parser

Generic ParseException Source # 
Instance details

Defined in Toml.Parser

Associated Types

type Rep ParseException :: Type -> Type #

NFData ParseException Source # 
Instance details

Defined in Toml.Parser

Methods

rnf :: ParseException -> () #

type Rep ParseException Source # 
Instance details

Defined in Toml.Parser

type Rep ParseException = D1 (MetaData "ParseException" "Toml.Parser" "tomland-1.0.0-inplace" True) (C1 (MetaCons "ParseException" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

parse :: Text -> Either ParseException TOML Source #

Parses Text as TOML AST object. If you want to convert Text to your custom haskell data type, use decode or decodeFile functions.