Copyright | (c) 2018-2022 Kowainik |
---|---|
License | MPL-2.0 |
Maintainer | Kowainik <xrom.xkov@gmail.com> |
Stability | Stable |
Portability | Portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Core error types, including TomlDecodeError
and LoadTomlException
.
Since: 1.3.0.0
Synopsis
Documentation
data TomlDecodeError Source #
Type of exception for converting from TOML to user custom data type.
Since: 1.3.0.0
BiMapError !Key !TomlBiMapError | |
KeyNotFound !Key | No such key |
TableNotFound !Key | No such table |
TableArrayNotFound !Key | No such table array Since: 1.3.0.0 |
ParseError !TomlParseError | Exception during parsing |
NotExactDecode !TOML | Unused field left in the decoded TOML. Since: 1.3.2.0 |
Instances
prettyTomlDecodeErrors :: [TomlDecodeError] -> Text Source #
Converts TomlDecodeError
s into pretty human-readable text.
Since: 1.3.0.0
prettyTomlDecodeError :: TomlDecodeError -> Text Source #
Converts TomlDecodeError
into pretty human-readable text.
Since: 1.3.0.0
data LoadTomlException Source #
File loading error data type.
Since: 0.3.1
Instances
Exception LoadTomlException Source # | Since: 0.3.1 |
Defined in Toml.Codec.Error | |
Show LoadTomlException Source # | Since: 0.3.1 |
Defined in Toml.Codec.Error showsPrec :: Int -> LoadTomlException -> ShowS # show :: LoadTomlException -> String # showList :: [LoadTomlException] -> ShowS # |