summaryrefslogtreecommitdiff
path: root/AAC_helper.mli
diff options
context:
space:
mode:
authorGravatar Stephane Glondu <steph@glondu.net>2010-12-01 13:33:59 +0100
committerGravatar Stephane Glondu <steph@glondu.net>2010-12-01 13:33:59 +0100
commitaa51449cb692a9a1d183b2663679645aba16b036 (patch)
treef32b2fd38d3442e4d583009cb09cbac701c33bc0 /AAC_helper.mli
parenta3c2b799e0eceb0896af062887c762c654d2e2f6 (diff)
parent8ab748064ddeec8400859e210bf9963826cba631 (diff)
Merge commit 'upstream/0.2.1'
Diffstat (limited to 'AAC_helper.mli')
-rw-r--r--AAC_helper.mli33
1 files changed, 33 insertions, 0 deletions
diff --git a/AAC_helper.mli b/AAC_helper.mli
new file mode 100644
index 0000000..f4e4454
--- /dev/null
+++ b/AAC_helper.mli
@@ -0,0 +1,33 @@
+(***************************************************************************)
+(* This is part of aac_tactics, it is distributed under the terms of the *)
+(* GNU Lesser General Public License version 3 *)
+(* (see file LICENSE for more details) *)
+(* *)
+(* Copyright 2009-2010: Thomas Braibant, Damien Pous. *)
+(***************************************************************************)
+
+(** Debugging functions, that can be triggered on a per-file base. *)
+
+module type CONTROL =
+sig
+ val debug : bool
+ val time : bool
+ val printing : bool
+end
+module Debug :
+ functor (X : CONTROL) ->
+sig
+ (** {!debug} prints the string and end it with a newline *)
+ val debug : string -> unit
+ val debug_exception : string -> exn -> unit
+
+ (** {!time} computes the time spent in a function, and then
+ print it using the given format *)
+ val time :
+ ('a -> 'b) -> 'a -> (float -> unit, out_channel, unit) format -> 'b
+
+ (** {!pr_constr} print a Coq constructor, that can be labelled
+ by a string *)
+ val pr_constr : string -> Term.constr -> unit
+
+ end