Decode a value of type A
as type B
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.
Construct a new decoder by using the output of this decoder as the input of another
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.
Construct a new decoder by using the result of another decoder as the input to this decoder
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
Construct a new decoder by mapping the error output of this decoder to a new error
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.
Constructs a new decoder that decodes a sequence of inputs.
Constructs a new decoder that decodes a sequence of inputs. 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 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.