summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Campbell2018-08-09 15:28:38 +0100
committerBrian Campbell2018-08-09 15:29:28 +0100
commit58f585cfd9b1f5fd7724fdcb71b46179524653ca (patch)
tree502e7689c1a927c2d032daa94bdbd17146537352 /src
parent9368ae447257efea8b0af8725350e195b2bb9731 (diff)
Coq: debugging on top-level lets
Diffstat (limited to 'src')
-rw-r--r--src/pretty_print_coq.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pretty_print_coq.ml b/src/pretty_print_coq.ml
index 4e2193c1..90276cb3 100644
--- a/src/pretty_print_coq.ml
+++ b/src/pretty_print_coq.ml
@@ -1929,6 +1929,7 @@ let doc_val pat exp =
in
let env = env_of exp in
let typ = expand_range_type (Env.expand_synonyms env (typ_of exp)) in
+ let ctxt = { empty_ctxt with debug = List.mem (string_of_id id) (!opt_debug_on) } in
let id, opt_unpack =
match destruct_exist env typ with
| None -> id, None
@@ -1943,7 +1944,7 @@ let doc_val pat exp =
let idpp = doc_id id in
let basepp =
group (string "Definition" ^^ space ^^ idpp ^^ typpp ^^ space ^^ coloneq ^/^
- doc_exp_lem empty_ctxt false exp ^^ dot) ^^ hardline
+ doc_exp_lem ctxt false exp ^^ dot) ^^ hardline
in
match opt_unpack with
| None -> basepp ^^ hardline