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.
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.