aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
Diffstat (limited to 'tactics')
-rw-r--r--tactics/tacinterp.ml5
-rw-r--r--tactics/tacinterp.mli3
2 files changed, 6 insertions, 2 deletions
diff --git a/tactics/tacinterp.ml b/tactics/tacinterp.ml
index a09bfbd120..efc2a9b822 100644
--- a/tactics/tacinterp.ml
+++ b/tactics/tacinterp.ml
@@ -1695,7 +1695,10 @@ let interp_tacarg sign ast = (*unvarg*) (val_interp sign ast)
let interp = fun ast -> tac_interp [] [] !debug ast
(* Hides interpretation for pretty-print *)
-let hide_interp t = abstract_tactic_expr (TacArg (Tacexp t)) (interp t)
+let hide_interp t ot =
+ match ot with
+ | None -> abstract_tactic_expr (TacArg (Tacexp t)) (interp t)
+ | Some t' -> abstract_tactic_expr (TacArg (Tacexp t)) (tclTHEN (interp t) t')
(* For bad tactic calls *)
let bad_tactic_args s =
diff --git a/tactics/tacinterp.mli b/tactics/tacinterp.mli
index b4b666fa75..c22ce9829c 100644
--- a/tactics/tacinterp.mli
+++ b/tactics/tacinterp.mli
@@ -103,7 +103,8 @@ val constr_interp : interp_sign -> constr_expr -> constr
val interp : raw_tactic_expr -> tactic
(* Hides interpretation for pretty-print *)
-val hide_interp : raw_tactic_expr -> tactic
+
+val hide_interp : raw_tactic_expr -> tactic option -> tactic
(* Adds an interpretation function *)
val interp_add : string * (interp_sign -> Coqast.t -> value) -> unit