decode<A> static method

Either<Error, A> decode<A>(
  1. String input,
  2. Decoder<A> decoder
)

Implementation

static Either<Error, A> decode<A>(String input, Decoder<A> decoder) =>
    parse(input).leftMap<Error>(identity).flatMap((a) => decoder.decode(a));