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