lexicographic cmps x y compares x and y lexicographically using functions in the list cmps.
lexicographic cmps x y
x
y
cmps
Inherit comparability from a component.
Usage example:
module Foo = struct module T = struct type t = ... with compare, sexp end include T include Comparable.Make (T) end
Then include Comparable.S in the signature (see comparable_intf.mli for an example).
Comparable.S