Provides a Decoder instance for Either[A, B]
, provided both A
and B
have a Decoder instance.
Creates a new Decoder instance that applies the specified function when decoding.
Turns an unsafe function into a Decoder.
Turns an unsafe function into a Decoder.
The specified function is assumed to throw, and errors will be dealt with properly.
Creates a new decoder using all specified values.
Creates a new decoder using all specified values.
The generated decoder will try each of the specified decoders in turn, and return either the first success or, if none is found, the last failure.