tomland-1.3.3.1: Bidirectional TOML serialization
Copyright(c) 2018-2021 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
StabilityStable
PortabilityPortable
Safe HaskellNone
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
Eq TomlParseError Source # 
Instance details

Defined in Toml.Parser

Show TomlParseError Source # 
Instance details

Defined in Toml.Parser

Generic TomlParseError Source # 
Instance details

Defined in Toml.Parser

Associated Types

type Rep TomlParseError :: Type -> Type #

NFData TomlParseError Source # 
Instance details

Defined in Toml.Parser

Methods

rnf :: TomlParseError -> () #

type Rep TomlParseError Source # 
Instance details

Defined in Toml.Parser

type Rep TomlParseError = D1 ('MetaData "TomlParseError" "Toml.Parser" "tomland-1.3.3.1-inplace" '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