tomland-1.2.1.0: Bidirectional TOML serialization
Copyright(c) 2018-2019 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
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 

Instances

Instances details
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.2.1.0-inplace" 'True) (C1 ('MetaCons "ParseException" 'PrefixI 'True) (S1 ('MetaSel ('Just "unParseException") '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.