Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Instances
Exception TOMLError Source # | |
Defined in TOML.Error toException :: TOMLError -> SomeException # fromException :: SomeException -> Maybe TOMLError # displayException :: TOMLError -> String # | |
Show TOMLError Source # | |
Eq TOMLError Source # | |
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
Show NormalizeError Source # | |
Defined in TOML.Error showsPrec :: Int -> NormalizeError -> ShowS # show :: NormalizeError -> String # showList :: [NormalizeError] -> ShowS # | |
Eq NormalizeError Source # | |
Defined in TOML.Error (==) :: NormalizeError -> NormalizeError -> Bool # (/=) :: NormalizeError -> NormalizeError -> Bool # |
type DecodeContext = [ContextItem] Source #
data ContextItem Source #
Instances
Show ContextItem Source # | |
Defined in TOML.Error showsPrec :: Int -> ContextItem -> ShowS # show :: ContextItem -> String # showList :: [ContextItem] -> ShowS # | |
Eq ContextItem Source # | |
Defined in TOML.Error (==) :: ContextItem -> ContextItem -> Bool # (/=) :: ContextItem -> ContextItem -> Bool # |
data DecodeError Source #
Instances
Show DecodeError Source # | |
Defined in TOML.Error showsPrec :: Int -> DecodeError -> ShowS # show :: DecodeError -> String # showList :: [DecodeError] -> ShowS # | |
Eq DecodeError Source # | |
Defined in TOML.Error (==) :: DecodeError -> DecodeError -> Bool # (/=) :: DecodeError -> DecodeError -> Bool # |
renderTOMLError :: TOMLError -> Text Source #