package decoders

  1. Overview
  2. Docs

Module Decoders.ErrorSource

Sourcetype 'a t

An 'a t is an error with a contextual value of type 'a

Sourceval make : ?context:'a -> string -> 'a t
Sourceval tag : string -> 'a t -> 'a t
Sourceval group : 'a t list -> 'a t
Sourceval tag_group : string -> 'a t list -> 'a t
Sourceval pp : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit
Sourceval to_string : (Format.formatter -> 'a -> unit) -> 'a t -> string
Sourceval map_tag : (string -> string) -> 'a t -> 'a t
Sourceval map_context : ('a -> 'b) -> 'a t -> 'b t