]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/extlib/hExtlib.mli
* New implementation of localized exceptions
[helm.git] / helm / ocaml / extlib / hExtlib.mli
index 40a1aca15d9daa00c435b5d1f6ec4554b4db4f57..a598ddb1a8cf34b258875d6f2ee3ab2497dbeb20 100644 (file)
@@ -77,3 +77,10 @@ type profiler = { profile : 'a 'b. ('a -> 'b) -> 'a -> 'b }
 val profile : ?enable:bool -> string -> profiler
 val set_profiling_printings : (unit -> bool) -> unit
 
+(** {2 Localized exceptions } *)
+
+exception Localized of Token.flocation * exn
+
+val loc_of_floc: Token.flocation -> int * int
+
+val raise_localized_exception: offset:int -> Token.flocation -> exn -> 'a