type elt = H.t
module rec Node : Hcons.S with type data = Data.t = HCB(Data)
- and Data : Common_sig.HashedType with type t = (elt, Node.t) node =
+ and Data : Common_sig.HashedType
+ with type t = (elt, Node.t) node
+ =
struct
type t = (elt, Node.t) node
let equal x y =
let hash = function
| Nil -> 0
- | Cons(e, l) -> HASHINT3 (PRIME1, Uid.to_int (H.uid e), Uid.to_int (Node.uid l))
+ | Cons(e, l) ->
+ HASHINT3 (PRIME1, Uid.to_int (H.uid e), Uid.to_int (Node.uid l))
end
include Node
module Make = Builder(Hcons.Make)
module Weak = Builder(Hcons.Weak)
-