Skip to main content
Module

x/fun/decoder.ts>Decoder

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
type alias Decoder
import { type Decoder } from "https://deno.land/x/fun@v2.0.0/decoder.ts";

The Decoder<D, A> type represents a function that parses some input D into a value A or a DecodeError. This isn't true parsing of a grammar but instead a combination of refinement and error tracking.