Up

Module V1

Signature

type ('f, 's) t = ('f, 's) t =
| First of 'f
| Second of 's
include Stable_module_types.S2 with type ('f, 's) t := ('f, 's) t
type ('a1, 'a2) t
val t_of_sexp : (Sexplib.Sexp.t -> 'a1) -> (Sexplib.Sexp.t -> 'a2) -> Sexplib.Sexp.t -> ('a1, 'a2) t
val sexp_of_t : ('a1 -> Sexplib.Sexp.t) -> ('a2 -> Sexplib.Sexp.t) -> ('a1, 'a2) t -> Sexplib.Sexp.t
val compare : ('a1 -> 'a1 -> int) -> ('a2 -> 'a2 -> int) -> ('a1, 'a2) t -> ('a1, 'a2) t -> int
val bin_read_t : 'a1 Bin_prot.Read.reader -> 'a2 Bin_prot.Read.reader -> ('a1, 'a2) t Bin_prot.Read.reader
val __bin_read_t__ : 'a1 Bin_prot.Read.reader -> 'a2 Bin_prot.Read.reader -> (int -> ('a1, 'a2) t) Bin_prot.Read.reader
val bin_size_t : 'a1 Bin_prot.Size.sizer -> 'a2 Bin_prot.Size.sizer -> ('a1, 'a2) t Bin_prot.Size.sizer
val bin_write_t : 'a1 Bin_prot.Write.writer -> 'a2 Bin_prot.Write.writer -> ('a1, 'a2) t Bin_prot.Write.writer
val map : ('a1, 'a2) t -> f1:('a1 -> 'b1) -> f2:('a2 -> 'b2) -> ('b1, 'b2) t