improve Int_id for tracing

This commit is contained in:
Simon Cruanes 2022-10-12 12:20:20 -04:00
parent 2726a3afe2
commit 4b359a40f2
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 3 additions and 5 deletions

View file

@ -18,10 +18,8 @@
(** {2 Exports} *)
module Entry_view = Entry_view
module Sink = Sink
module Source = Source
module Entry_id = Entry_id
type entry_id = Entry_id.t
type entry_view = Entry_view.t = ..

View file

@ -3,9 +3,8 @@
module type S = sig
type t = private int
val equal : t -> t -> bool
val compare : t -> t -> int
val hash : t -> int
include Sidekick_sigs.EQ_ORD_HASH_PRINT with type t := t
val to_int : t -> int
val of_int_unsafe : int -> t
end
@ -17,6 +16,7 @@ module Make () = struct
let equal : t -> t -> bool = ( = )
let compare : t -> t -> int = compare
let hash = CCHash.int
let pp = CCFormat.int
let[@inline] to_int i = i
external of_int_unsafe : int -> t = "%identity"