X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=ptset.mli;h=27b63325d2b885621cf4a8d78f59272c76c0e693;hb=ac8720a930e5757a72f73e80aff7a988b0082831;hp=477acc36afb5d58135a2a29ebd0e466418db5dca;hpb=d046f2b9d8e39b30350399eafe122c30ff61c8c1;p=SXSI%2Fxpathcomp.git diff --git a/ptset.mli b/ptset.mli index 477acc3..27b6332 100644 --- a/ptset.mli +++ b/ptset.mli @@ -26,8 +26,18 @@ module type S = sig type elt - type data - type t + + type 'a node + module rec Node : sig + include Hcons.S with type data = Data.t + end + and Data : sig + include + Hashtbl.HashedType with type t = Node.t node + end + type data = Data.t + type t = Node.t + val empty : t val is_empty : t -> bool val mem : elt -> t -> bool @@ -78,4 +88,4 @@ module Int : sig val print : Format.formatter -> t -> unit end -module Make ( H : Hcons.S ) : S with type elt = H.t +module Make ( H : Hcons.SA ) : S with type elt = H.t