Module Error.Angstrom

type t = [
| `Decoder of info
| `Result of Cstruct.t * string
| `Decoder_stream of Cstruct.t * info
| `Decoder_file of Fpath.t * info
]
and info = {
committed : int;
path : string list;
error : string;
}
val pp_error : Stdlib.Format.formatter -> [< `Decoder of info | `Decoder_file of Fpath.t * info | `Decoder_stream of Cstruct.t * info | `Result of Cstruct.t * string ] -> unit
val err_decode : (int * string list * string) -> [> `Decoder of info ]
val err_result : 'a -> 'b -> [> `Result of 'a * 'b ]
val err_decode_stream : 'a -> (int * string list * string) -> [> `Decoder_stream of 'a * info ]
val err_decode_file : 'a -> (int * string list * string) -> [> `Decoder_file of 'a * info ]
val with_path : 'a -> [< `Decoder of 'b | `Decoder_file of 'a * 'b | `Decoder_stream of 'c * 'b | `Result of 'd ] -> [> `Decoder_file of 'a * 'b ]