X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Focaml%2Fextlib%2FhExtlib.mli;h=a598ddb1a8cf34b258875d6f2ee3ab2497dbeb20;hb=bc504bdaca501cd4d33f3240e01855988bc15b79;hp=40a1aca15d9daa00c435b5d1f6ec4554b4db4f57;hpb=c9084482321e613ee4d43ec62c512a0271a36808;p=helm.git diff --git a/helm/ocaml/extlib/hExtlib.mli b/helm/ocaml/extlib/hExtlib.mli index 40a1aca15..a598ddb1a 100644 --- a/helm/ocaml/extlib/hExtlib.mli +++ b/helm/ocaml/extlib/hExtlib.mli @@ -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