aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Anand (@brixpro-home)2017-01-22 11:59:22 -0500
committerAbhishek Anand (@brixpro-home)2017-05-02 20:32:56 -0400
commitdba083b267a2aede3654dcebaab0013d284d32c7 (patch)
tree05984bab22bae14ca67ac1eb461b12ae158653e7
parent4bff930da2c029a66eaf5378e5abd2cc35554f8f (diff)
applied the patch for printing types of let bindings by @herbelin
-rw-r--r--pretyping/detyping.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/pretyping/detyping.ml b/pretyping/detyping.ml
index 483e2b4320..1eec85f455 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 =