diff options
Diffstat (limited to 'lib/util.ml')
| -rw-r--r-- | lib/util.ml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.ml b/lib/util.ml index 6dd0a792b2..32ede2fb24 100644 --- a/lib/util.ml +++ b/lib/util.ml @@ -34,6 +34,9 @@ let anomaly_loc (loc,s,strm) = Stdpp.raise_with_loc loc (Anomaly (s,strm)) let user_err_loc (loc,s,strm) = Stdpp.raise_with_loc loc (UserError (s,strm)) let invalid_arg_loc (loc,s) = Stdpp.raise_with_loc loc (Invalid_argument s) +let located_fold_left f x (_,a) = f x a +let located_iter2 f (_,a) (_,b) = f a b + (* Like Exc_located, but specifies the outermost file read, the filename associated to the location of the error, and the error itself. *) |
