object Codec
- Companion:
- class
Value members
Concrete methods
Produce a codec to/from a string. If the parsing function fails, the decoding output is an Invalid with a message mentioning the type name.
Produce a codec to/from a string. If the parsing function fails, the decoding output is an Invalid with a message mentioning the type name.
- Value parameters:
- parse
parsing function to use, with exceptions turned into Invalid
printing function to use, not supposed to throw exceptions
- type
name of the type being decoded