Decode a value of type A
as type B
Compose this decoder with another by using the output of the other decoder as the input to this decoder
Compose this decoder with another by using the output of the other decoder as the input to this decoder
Compose this decoder with another by using the output of this decoder as the input to the other
Compose this decoder with another by using the output of this decoder as the input to the other
Construct a new decoder by joining this decoder with another, tupling the results.
Construct a new decoder by joining this decoder with another, tupling the results. Errors accumulate.
Compose this decoder with another by using the output of this decoder as the input to the other
Compose this decoder with another by using the output of this decoder as the input to the other
Construct a new decoder that first reads a path.
Construct a new decoder that first reads a path. The value read is then passed to this decoder. Errors are adjusted to reflect that they occurred at a nested path.
Compose this decoder with another by using the output of the other decoder as the input to this decoder
Compose this decoder with another by using the output of the other decoder as the input to this decoder
Decode a value of type A
as type B
.
Decode a value of type A
as type B
.
This is an alias for apply.
Constructs a new decoder that optionally decodes a value.
Constructs a new decoder that optionally decodes a value. Deep errors other than a missing value still cause the resulting decoder to fail
Construct a new decoder by mapping the output of this decoder
to either a DecodeError
or a new result type
Construct a new decoder through a monadic bind
[use case] Construct a new decoder by joining this decoder with another, tupling the results.
Construct a new decoder by joining this decoder with another, tupling the results. Errors accumulate.
This behaves similar to and except that instead of always returning a nested tuple it attempts to return a flattened tuple.
Construct a new decoder by mapping the error output of this decoder to a new error
Convert a coproduct decoder to a decoder to the least upper bound of the disjunct types
Construct a new decoder by mapping the output of this decoder
Construct a new decoder by mapping the input to this decoder
Constructs a new decoder that optionally decodes a value.
Constructs a new decoder that optionally decodes a value. Errors other than a missing value still cause the resulting decoder to fail.
Construct a new decoder using this decoder first.
Construct a new decoder using this decoder first. If it fails, use the other. Errors accumulate.
[use case] Constructs a new decoder that decodes a sequence of inputs into a sequence of outputs.
Constructs a new decoder that decodes a sequence of inputs into a sequence of outputs.
The result is sequenced so that any errors cause the overall decoder to fail. Errors accumulate and are marked with their index if they fail.
Construct a new decoder that traces the result to stdout
Constructs a new decoder that falls back to a default value if a deep missing value error occurs
Constructs a new decoder that falls back to a default value if a deep missing value error occurs
Constructs a new decoder that falls back to a default value if a missing value error occurs
Constructs a new decoder that falls back to a value if any error occurs
Constructs a new decoder that falls back to a value if any error occurs
To provide default values for a decoder, consider using withDefault.
A type class capturing the ability to decode data of type
A
toB
.To construct a new decoder, consider using Decoder.instance.