aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tac2core.ml8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tac2core.ml b/src/tac2core.ml
index b6983ed869..890062a6d1 100644
--- a/src/tac2core.ml
+++ b/src/tac2core.ml
@@ -867,6 +867,14 @@ let () = define1 "env_path" reference begin fun r ->
throw err_notfound
end
+let () = define1 "env_instantiate" reference begin fun r ->
+ Proofview.tclENV >>= fun env ->
+ Proofview.tclEVARMAP >>= fun sigma ->
+ let (sigma, c) = Evd.fresh_global env sigma r in
+ Proofview.Unsafe.tclEVARS sigma >>= fun () ->
+ return (Value.of_constr c)
+end
+
(** ML types *)
let constr_flags () =