toml-reader-0.2.1.0: TOML format parser compliant with v1.0.0.
Safe HaskellSafe-Inferred
LanguageHaskell2010

TOML.Error

Documentation

data NormalizeError Source #

Constructors

DuplicateKeyError

When a key is defined twice, e.g.

name = First
name = Second
DuplicateSectionError

When a section is defined twice, e.g.

[foo]
a = 1

[foo]
b = 2
ExtendTableError

When a key attempts to extend an invalid table

a = {}
[a.b]

b = {}
b.a = 1

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

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

a = [{ b = 1 }]
[a.c]
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
NonTableInNestedKeyError

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

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

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

a.b = 1

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

Instances

Instances details
Show NormalizeError Source # 
Instance details

Defined in TOML.Error

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

Eq ContextItem Source # 
Instance details

Defined in TOML.Error

data DecodeError Source #

Instances

Instances details
Show DecodeError Source # 
Instance details

Defined in TOML.Error

Eq DecodeError Source # 
Instance details

Defined in TOML.Error