aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--printing/pptactic.ml6
-rw-r--r--printing/printer.ml3
-rw-r--r--printing/printer.mli1
3 files changed, 10 insertions, 0 deletions
diff --git a/printing/pptactic.ml b/printing/pptactic.ml
index 46aad3bc2b..caba9609b8 100644
--- a/printing/pptactic.ml
+++ b/printing/pptactic.ml
@@ -1426,6 +1426,12 @@ let () =
;
Genprint.register_print0 Constrarg.wit_sort
pr_glob_sort pr_glob_sort pr_sort;
+ Genprint.register_print0
+ Constrarg.wit_uconstr
+ Ppconstr.pr_constr_expr
+ (fun (c,_) -> Printer.pr_glob_constr c)
+ Printer.pr_closed_glob
+ ;
Genprint.register_print0 Stdarg.wit_int int int int;
Genprint.register_print0 Stdarg.wit_bool pr_bool pr_bool pr_bool;
Genprint.register_print0 Stdarg.wit_unit pr_unit pr_unit pr_unit;
diff --git a/printing/printer.ml b/printing/printer.ml
index 0fea782974..e21c9a61b9 100644
--- a/printing/printer.ml
+++ b/printing/printer.ml
@@ -124,6 +124,9 @@ let pr_glob_constr c =
let pr_closed_glob_env env sigma c =
pr_constr_expr (extern_closed_glob false env sigma c)
+let pr_closed_glob c =
+ let (sigma, env) = get_current_context () in
+ pr_closed_glob_env env sigma c
let pr_lconstr_pattern_env env sigma c =
pr_lconstr_pattern_expr (extern_constr_pattern (Termops.names_of_rel_context env) sigma c)
diff --git a/printing/printer.mli b/printing/printer.mli
index baa81c9fe4..ac35a324a4 100644
--- a/printing/printer.mli
+++ b/printing/printer.mli
@@ -60,6 +60,7 @@ val pr_type_env : env -> evar_map -> types -> std_ppcmds
val pr_type : types -> std_ppcmds
val pr_closed_glob_env : env -> evar_map -> closed_glob_constr -> std_ppcmds
+val pr_closed_glob : closed_glob_constr -> std_ppcmds
val pr_ljudge_env : env -> evar_map -> unsafe_judgment -> std_ppcmds * std_ppcmds
val pr_ljudge : unsafe_judgment -> std_ppcmds * std_ppcmds