aboutsummaryrefslogtreecommitdiffhomepage
path: root/printing
diff options
context:
space:
mode:
authorGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-08-01 14:43:05 +0000
committerGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-08-01 14:43:05 +0000
commit4e9f73a08e345dec28a2c93b4b3767ebe18605fc (patch)
treecd5918f13184656eb5531d397c0fedf2f82e4c14 /printing
parent588cae6376261a8794e30ba5c31f0a9701153715 (diff)
Added printing of instance priority to the Print Instances command.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16647 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'printing')
-rw-r--r--printing/prettyp.ml6
1 files changed, 5 insertions, 1 deletions
diff --git a/printing/prettyp.ml b/printing/prettyp.ml
index d7d7bd97d..9a084adc4 100644
--- a/printing/prettyp.ml
+++ b/printing/prettyp.ml
@@ -772,7 +772,11 @@ let print_typeclasses () =
let pr_instance env i =
(* gallina_print_constant_with_infos i.is_impl *)
(* lighter *)
- print_ref false (instance_impl i)
+ print_ref false (instance_impl i) ++
+ begin match instance_priority i with
+ | None -> mt ()
+ | Some i -> spc () ++ str "|" ++ spc () ++ int i
+ end
let print_all_instances () =
let env = Global.env () in