diff options
| author | Hugo Herbelin | 2018-12-27 08:56:23 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2019-02-19 15:06:00 +0100 |
| commit | 21bcc5f6fc8db1ccad16dea89f1705a799c1d090 (patch) | |
| tree | 3ebd35fdaf2cbee91c374ea2c400e35f603df6c3 /lib/dAst.ml | |
| parent | 7c62153610f54a96cdded0455af0fff7ff91a53a (diff) | |
Notations: Enforce strong evaluation of cases_pattern_of_glob_constr.
This is because it can raise Not_found in depth and we need to catch
it at the right time.
Diffstat (limited to 'lib/dAst.ml')
| -rw-r--r-- | lib/dAst.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dAst.ml b/lib/dAst.ml index f34ab956a3..803b2a0cff 100644 --- a/lib/dAst.ml +++ b/lib/dAst.ml @@ -30,6 +30,8 @@ let make ?loc v = CAst.make ?loc (Value v) let delay ?loc v = CAst.make ?loc (Thunk (Lazy.from_fun v)) +let force x = CAst.make ?loc:x.CAst.loc (Value (get_thunk x.v)) + let map f n = CAst.map (fun x -> map_thunk f x) n let map_with_loc f n = |
