| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Toml.Bi.Code
Contents
- type BiToml a = Bi Env St a
- type Env = ExceptT DecodeException (Reader TOML)
- type St = State TOML
- data DecodeException
- prettyException :: DecodeException -> Text
- decode :: BiToml a -> Text -> Either DecodeException a
- encode :: BiToml a -> a -> Text
Types
type Env = ExceptT DecodeException (Reader TOML) Source #
Immutable environment for Toml conversion.
This is r type variable in Bijection data type.
Mutable context for Toml conversion.
This is w type variable in Bijection data type.
Exceptions
data DecodeException Source #
Type of exception for converting from Toml to user custom data type.
Constructors
| KeyNotFound Key | No such key |
| TableNotFound Key | No such table |
| TypeMismatch Key Text ValueType | Expected type vs actual type |
| ParseError ParseException | Exception during parsing |
Instances
prettyException :: DecodeException -> Text Source #
Converts DecodeException into pretty human-readable text.