diff options
author | 2015-12-03 15:08:51 +0100 | |
---|---|---|
committer | 2015-12-03 15:13:02 +0100 | |
commit | 06a30c78c6148e8286c0904368bcc0f7c5af2c81 (patch) | |
tree | 8581b27825cd3a6b5e1ced6061004f9b9ddd0f11 /pretyping/detyping.ml | |
parent | f5a752261f210e9c5ecbbbf54886904f0856975a (diff) | |
parent | 6316e8b380a9942cd587f250eb4a69668e52019e (diff) |
Merge branch 'v8.5'
Diffstat (limited to 'pretyping/detyping.ml')
-rw-r--r-- | pretyping/detyping.ml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pretyping/detyping.ml b/pretyping/detyping.ml index df15be9b3..dab82fa22 100644 --- a/pretyping/detyping.ml +++ b/pretyping/detyping.ml @@ -166,6 +166,18 @@ let _ = declare_bool_option optread = print_primproj_params; optwrite = (:=) print_primproj_params_value } +let print_primproj_compatibility_value = ref true +let print_primproj_compatibility () = !print_primproj_compatibility_value + +let _ = declare_bool_option + { optsync = true; + optdepr = false; + optname = "backwards-compatible printing of primitive projections"; + optkey = ["Printing";"Primitive";"Projection";"Compatibility"]; + optread = print_primproj_compatibility; + optwrite = (:=) print_primproj_compatibility_value } + + (* Auxiliary function for MutCase printing *) (* [computable] tries to tell if the predicate typing the result is inferable*) @@ -476,7 +488,7 @@ let rec detype flags avoid env sigma t = GApp (dl, GRef (dl, ConstRef (Projection.constant p), None), [detype flags avoid env sigma c]) else - if Projection.unfolded p then + if print_primproj_compatibility () && Projection.unfolded p then (** Print the compatibility match version *) let c' = try |