Turns a GroupDecoder[A] and GroupDecoder[B] into a GroupDecoder[Either[A, B]].
Turns a GroupDecoder[A] and GroupDecoder[B] into a GroupDecoder[Either[A, B]].
This means that, provided you know how to decode an A
and a B
, you will always have free support for
Either[A, B]
.
Provides an instance of MatchDecoder for Either[A, B]
, provided both A
and B
have a MatchDecoder.
Provides an instance of MatchDecoder for Either[A, B]
, provided both A
and B
have a MatchDecoder.
Turns a GroupDecoder into a MatchDecoder by having it look at the entire match rather than a specific group.
Turns a GroupDecoder into a MatchDecoder by having it look at the entire match rather than a specific group.
Turns a StringDecoder
instance into a GroupDecoder one.
Turns a StringDecoder
instance into a GroupDecoder one.
This provides free support for all primitive types (as well as a few convenience ones, such as java.io.File
).
Turns a GroupDecoder[A] into a GroupDecoder[Option[A]].
Turns a GroupDecoder[A] into a GroupDecoder[Option[A]].
This means that, provided you know how to decode an A
, you will always have free support for Option[A]
.
Provides an instance of MatchDecoder for Option[A]
, provided A
has a MatchDecoder.
Provides an instance of MatchDecoder for Option[A]
, provided A
has a MatchDecoder.
Acts as a type tag for regex-specific
kantan.codecs.Decoder
instances.