aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping
diff options
context:
space:
mode:
authorGravatar Maxime Dénès <mail@maximedenes.fr>2017-05-03 19:02:15 +0200
committerGravatar Maxime Dénès <mail@maximedenes.fr>2017-05-03 19:02:15 +0200
commit2e50976a081c8b2b8a2a8dc04320324711b04381 (patch)
treedcdcf53469746b7de387ecbea481f66d1623ef68 /pretyping
parent3c795ba6b5728e8a0a699ab15c773c52c48f33e4 (diff)
parentdba083b267a2aede3654dcebaab0013d284d32c7 (diff)
Merge PR#404: patch for printing types of let bindings
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/detyping.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/pretyping/detyping.ml b/pretyping/detyping.ml
index 483e2b432..1eec85f45 100644
--- a/pretyping/detyping.ml
+++ b/pretyping/detyping.ml
@@ -695,7 +695,7 @@ and detype_binder (lax,isgoal as flags) bk avoid env sigma na body ty c =
let c = detype (lax,false) avoid env sigma (Option.get body) in
(* Heuristic: we display the type if in Prop *)
let s = try Retyping.get_sort_family_of (snd env) sigma ty with _ when !Flags.in_debugger || !Flags.in_toplevel -> InType (* Can fail because of sigma missing in debugger *) in
- let t = if s != InProp then None else Some (detype (lax,false) avoid env sigma ty) in
+ let t = if s != InProp && not !Flags.raw_print then None else Some (detype (lax,false) avoid env sigma ty) in
GLetIn (dl, na', c, t, r)
let detype_rel_context ?(lax=false) where avoid env sigma sign =