Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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.
KeyNotFound Key | No such key |
TableNotFound Key | No such table |
TypeMismatch Key Text TValue | Expected type vs actual type |
ParseError ParseException | Exception during parsing |
prettyException :: DecodeException -> Text Source #
Converts DecodeException
into pretty human-readable text.