Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data NormalizeError Source #
DuplicateKeyError | When a key is defined twice, e.g. name = |
| |
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
Eq NormalizeError Source # | |
Defined in TOML.Error (==) :: NormalizeError -> NormalizeError -> Bool # (/=) :: NormalizeError -> NormalizeError -> Bool # | |
Show NormalizeError Source # | |
Defined in TOML.Error showsPrec :: Int -> NormalizeError -> ShowS # show :: NormalizeError -> String # showList :: [NormalizeError] -> ShowS # |
type DecodeContext = [ContextItem] Source #
data ContextItem Source #
Instances
Eq ContextItem Source # | |
Defined in TOML.Error (==) :: ContextItem -> ContextItem -> Bool # (/=) :: ContextItem -> ContextItem -> Bool # | |
Show ContextItem Source # | |
Defined in TOML.Error showsPrec :: Int -> ContextItem -> ShowS # show :: ContextItem -> String # showList :: [ContextItem] -> ShowS # |
data DecodeError Source #
Instances
Eq DecodeError Source # | |
Defined in TOML.Error (==) :: DecodeError -> DecodeError -> Bool # (/=) :: DecodeError -> DecodeError -> Bool # | |
Show DecodeError Source # | |
Defined in TOML.Error showsPrec :: Int -> DecodeError -> ShowS # show :: DecodeError -> String # showList :: [DecodeError] -> ShowS # |
renderTOMLError :: TOMLError -> Text Source #