tomland-1.3.3.3: Bidirectional TOML serialization
Copyright(c) 2018-2022 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
StabilityStable
PortabilityPortable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Toml.Codec.Error

Description

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

Constructors

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

Instances details
Generic TomlDecodeError Source # 
Instance details

Defined in Toml.Codec.Error

Associated Types

type Rep TomlDecodeError :: Type -> Type #

Show TomlDecodeError Source # 
Instance details

Defined in Toml.Codec.Error

NFData TomlDecodeError Source # 
Instance details

Defined in Toml.Codec.Error

Methods

rnf :: TomlDecodeError -> () #

Eq TomlDecodeError Source # 
Instance details

Defined in Toml.Codec.Error

type Rep TomlDecodeError Source # 
Instance details

Defined in Toml.Codec.Error

prettyTomlDecodeErrors :: [TomlDecodeError] -> Text Source #

Converts TomlDecodeErrors 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