package decoders

  1. Overview
  2. Docs
type 'a t

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

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