Add 'either' and 'validation' codecs for returning TOML errors
chshersh opened this issue · 0 comments
chshersh commented
The following codecs can be useful for cases when we want to print pretty error messages:
either :: TomlCodec a -> TomlCodec (Either [TomlDecodeError] a)
validation :: TomlCodec a -> TomlCodec (Validation [TomlDecodeError] a)