Source file identifiable.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
open! Import
module type S = sig
type t [@@deriving_inline hash, sexp]
val hash_fold_t : Ppx_hash_lib.Std.Hash.state -> t -> Ppx_hash_lib.Std.Hash.state
val hash : t -> Ppx_hash_lib.Std.Hash.hash_value
include Ppx_sexp_conv_lib.Sexpable.S with type t := t
[@@@end]
include Stringable.S with type t := t
include Comparable.S with type t := t
include Pretty_printer.S with type t := t
end
module Make (T : sig
type t [@@deriving_inline compare, hash, sexp]
val compare : t -> t -> int
val hash_fold_t : Ppx_hash_lib.Std.Hash.state -> t -> Ppx_hash_lib.Std.Hash.state
val hash : t -> Ppx_hash_lib.Std.Hash.hash_value
include Ppx_sexp_conv_lib.Sexpable.S with type t := t
[@@@end]
include Stringable.S with type t := t
val module_name : string
end) =
struct
include T
include Comparable.Make (T)
include Pretty_printer.Register (T)
end
module Make_using_comparator (T : sig
type t [@@deriving_inline hash, sexp]
val hash_fold_t : Ppx_hash_lib.Std.Hash.state -> t -> Ppx_hash_lib.Std.Hash.state
val hash : t -> Ppx_hash_lib.Std.Hash.hash_value
include Ppx_sexp_conv_lib.Sexpable.S with type t := t
[@@@end]
include Comparator.S with type t := t
include Stringable.S with type t := t
val module_name : string
end) =
struct
include T
include Comparable.Make_using_comparator (T)
include Pretty_printer.Register (T)
end