module Result:sig..end
type ('a, 'b) t = | | | Input_closed | 
| | | Input_closed_in_the_middle_of_data of  | 
| | | Output_closed of  | 
| | | Unpack_error of  | 
val to_error : ('a, 'b) t -> Core.Std.Error.tval sexp_of_t : ('a -> Sexplib.Sexp.t) ->
       ('b -> Sexplib.Sexp.t) -> ('a, 'b) t -> Sexplib.Sexp.t