toml-reader-0.3.0.0: TOML format parser compliant with v1.0.0.
Safe HaskellNone
LanguageGHC2021

TOML.Error

Documentation

data TOMLError Source #

Instances

Instances details
Exception TOMLError Source # 
Instance details

Defined in TOML.Error

Methods

toException :: TOMLError -> SomeException

fromException :: SomeException -> Maybe TOMLError

displayException :: TOMLError -> String

backtraceDesired :: TOMLError -> Bool

Show TOMLError Source # 
Instance details

Defined in TOML.Error

Methods

showsPrec :: Int -> TOMLError -> ShowS

show :: TOMLError -> String

showList :: [TOMLError] -> ShowS

Eq TOMLError Source # 
Instance details

Defined in TOML.Error

Methods

(==) :: TOMLError -> TOMLError -> Bool

(/=) :: TOMLError -> TOMLError -> Bool

data NormalizeError Source #

Constructors

DuplicateKeyError

When a key is defined twice, e.g.

name = First
name = Second

Fields

DuplicateSectionError

When a section is defined twice, e.g.

[foo]
a = 1

[foo]
b = 2

Fields

ExtendTableError

When a key attempts to extend an invalid table

a = {}
[a.b]

b = {}
b.a = 1

c.x.x = 1
[c.a]

Fields

ExtendTableInInlineArrayError

When a section attempts to extend a table within an inline array

a = [{ b = 1 }]
[a.c]

Fields

ImplicitArrayForDefinedKeyError

When a key is already defined, but attempting to create an implicit array at the same key, e.g.

list = [1, 2, 3]

[[list]]
a = 1

Fields

NonTableInNestedKeyError

When a non-table value is already defined in a nested key, e.g.

a.b = 1
a.b.c.d = 2

Fields

NonTableInNestedImplicitArrayError

When a non-table value is already defined in a nested implicit array, e.g.

a.b = 1

[[a.b.c]]
d = 2

Fields

Instances

Instances details
Show NormalizeError Source # 
Instance details

Defined in TOML.Error

Methods

showsPrec :: Int -> NormalizeError -> ShowS

show :: NormalizeError -> String

showList :: [NormalizeError] -> ShowS

Eq NormalizeError Source # 
Instance details

Defined in TOML.Error

data ContextItem Source #

Constructors

Key Text 
Index Int 

Instances

Instances details
Show ContextItem Source # 
Instance details

Defined in TOML.Error

Methods

showsPrec :: Int -> ContextItem -> ShowS

show :: ContextItem -> String

showList :: [ContextItem] -> ShowS

Eq ContextItem Source # 
Instance details

Defined in TOML.Error

Methods

(==) :: ContextItem -> ContextItem -> Bool

(/=) :: ContextItem -> ContextItem -> Bool

data DecodeError Source #

Instances

Instances details
Show DecodeError Source # 
Instance details

Defined in TOML.Error

Methods

showsPrec :: Int -> DecodeError -> ShowS

show :: DecodeError -> String

showList :: [DecodeError] -> ShowS

Eq DecodeError Source # 
Instance details

Defined in TOML.Error

Methods

(==) :: DecodeError -> DecodeError -> Bool

(/=) :: DecodeError -> DecodeError -> Bool