From 4177c2380fcd92bca07c97993c21ffd230408eca Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Wed, 5 Mar 2014 20:32:10 +0100 Subject: Adding a canary library. This canary is imperfect. It allows serialization (hopefully), and forbids generic equality. Still, it allows generic hash. --- lib/canary.ml | 26 ++++++++++++++++++++++++++ lib/canary.mli | 25 +++++++++++++++++++++++++ lib/clib.mllib | 1 + 3 files changed, 52 insertions(+) create mode 100644 lib/canary.ml create mode 100644 lib/canary.mli (limited to 'lib') diff --git a/lib/canary.ml b/lib/canary.ml new file mode 100644 index 0000000000..f27890c160 --- /dev/null +++ b/lib/canary.ml @@ -0,0 +1,26 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* M.t + val inj : M.t -> t +end +(** Adds a canary to any type. *) diff --git a/lib/clib.mllib b/lib/clib.mllib index 2547ed2297..1dc540b9aa 100644 --- a/lib/clib.mllib +++ b/lib/clib.mllib @@ -1,5 +1,6 @@ Coq_config +Canary Hook Hashset Hashcons -- cgit v1.2.3