Module Kxclib.ResultWithErrmsg0

include sig ... end
type err = string
exception Error_result of err
type !'x0 t = ('x, err) Stdlib.result
val bind : 'x t -> ('x -> 'y t) -> 'y t
val return : 'x -> 'x t
val error : err -> 'a t
val get : 'x t -> 'x
val protect' : handler:(exn -> string) -> ('x -> 'y) -> 'x -> 'y t
val protect : ('x -> 'y) -> 'x -> 'y t