tomland-1.3.3.3: Bidirectional TOML serialization
Copyright(c) 2018-2022 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
StabilityStable
PortabilityPortable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Toml.Parser

Description

Parser for text to TOML AST.

Since: 0.0.0

Synopsis

Documentation

newtype TomlParseError Source #

Pretty parse exception for parsing toml.

Since: 1.3.0.0

Constructors

TomlParseError 

Instances

Instances details
Generic TomlParseError Source # 
Instance details

Defined in Toml.Parser

Associated Types

type Rep TomlParseError :: Type -> Type #

Show TomlParseError Source # 
Instance details

Defined in Toml.Parser

NFData TomlParseError Source # 
Instance details

Defined in Toml.Parser

Methods

rnf :: TomlParseError -> () #

Eq TomlParseError Source # 
Instance details

Defined in Toml.Parser

type Rep TomlParseError Source # 
Instance details

Defined in Toml.Parser

type Rep TomlParseError = D1 ('MetaData "TomlParseError" "Toml.Parser" "tomland-1.3.3.3-Ih5ryp7Jmpp9EbGekxhWoS" 'True) (C1 ('MetaCons "TomlParseError" 'PrefixI 'True) (S1 ('MetaSel ('Just "unTomlParseError") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

parse :: Text -> Either TomlParseError 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.

Since: 0.0.0

parseKey :: Text -> Either TomlParseError Key Source #

Parse TOML Key from Text.

Since: 1.3.0.0