Safety before Techfest
[SXSI/xpathcomp.git] / hlist.ml
index e5a4aa5..5509871 100644 (file)
--- a/hlist.ml
+++ b/hlist.ml
@@ -49,10 +49,10 @@ struct
   type data = Data.t
   type t = Node.t
   let make = Node.make
-  let node Node.node
-  let hash = Node.hash 
+  let node x = x.Node.node
+  let hash x = x.Node.key
   let equal = Node.equal
-  let uid = Node.uid
+  let uid x= x.Node.id
   let nil = Node.make Nil
   let cons a b = Node.make (Cons(a,b))
   let hd = function { Node.node = Cons(a,_) } -> a | _ -> failwith "hd"