Comparer.Apply1
Apply1 (F) (A)
takes a type ('a, 'b, 'compare_a) F.t
with two type parameters 'a
, 'b
and a compare type 'compare_a
for 'a
, and a comparer A
, and creates a comparer for F.t
with 'a
instantiated to A.t
.
module F : sig ... end
include Ppx_compare_lib.Comparable.S1 with type 'b t := 'b t
val compare :
'a Base__Ppx_compare_lib.compare ->
'a t Base__Ppx_compare_lib.compare
include S1
with type 'b t := 'b t
with type 'compare_b compare = (A.compare, 'compare_b) F.compare
type ('a, 'compare_a) comparer := ('a, 'compare_a) t
val sexp_of_compare :
('compare_a -> Sexplib0.Sexp.t) ->
'compare_a compare ->
Sexplib0.Sexp.t
val compare_of_sexp :
(Sexplib0.Sexp.t -> 'compare_a) ->
Sexplib0.Sexp.t ->
'compare_a compare