base

Full standard library replacement for OCaml
IN THIS PACKAGE
type ('a, 'b) t =
| Left of 'a
| Right of 'b
| Both of 'a * 'b
val compare : ( 'a -> 'a -> int ) -> ( 'b -> 'b -> int ) -> ( 'a, 'b ) t -> ( 'a, 'b ) t -> int
val hash_fold_t : ( Hash.state -> 'a -> Hash.state ) -> ( Hash.state -> 'b -> Hash.state ) -> Hash.state -> ( 'a, 'b ) t -> Hash.state
include Sexplib0.Sexpable.S2 with type ('a, 'b) t := ( 'a, 'b ) t
val t_of_sexp : ( Sexplib0.Sexp.t -> 'a ) -> ( Sexplib0.Sexp.t -> 'b ) -> Sexplib0.Sexp.t -> ( 'a, 'b ) t
val sexp_of_t : ( 'a -> Sexplib0.Sexp.t ) -> ( 'b -> Sexplib0.Sexp.t ) -> ( 'a, 'b ) t -> Sexplib0.Sexp.t
val t_sexp_grammar : 'a Sexplib0.Sexp_grammar.t -> 'b Sexplib0.Sexp_grammar.t -> ( 'a, 'b ) t Sexplib0.Sexp_grammar.t