]> matita.cs.unibo.it Git - helm.git/blobdiff - components/extlib/hExtlib.mli
- decompose now runs with no arguments (operates on the whole context)
[helm.git] / components / extlib / hExtlib.mli
index 17e2de2bc0c758603486bcc7dac5e4da14256876..52b74429cd0e6909539a2c0b8eb2ed26569ca670 100644 (file)
@@ -53,6 +53,10 @@ val output_file: filename:string -> text:string -> unit (** other way round *)
 
 (** {2 Exception handling} *)
 
+  (** @param finalizer finalization function (execution both in case of success
+   * and in case of raised exception
+   * @param f function to be invoked
+   * @param arg argument to be passed to function *)
 val finally: (unit -> unit) -> ('a -> 'b) -> 'a -> 'b
 
 (** {2 Char processing} *)
@@ -82,7 +86,7 @@ type profiler = { profile : 'a 'b. ('a -> 'b) -> 'a -> 'b }
   (** @return a profiling function; [s] is used for labelling the total time at
    * the end of the execution *)
 val profile : ?enable:bool -> string -> profiler
-val set_profiling_printings : (unit -> bool) -> unit
+val set_profiling_printings : (string -> bool) -> unit
 
 (** {2 Localized exceptions } *)
 
@@ -94,3 +98,7 @@ val floc_of_loc: int * int -> Token.flocation
 val dummy_floc: Lexing.position * Lexing.position
 
 val raise_localized_exception: offset:int -> Token.flocation -> exn -> 'a
+
+(* size in KB (SLOW) *)
+val estimate_size: 'a -> int
+