aboutsummaryrefslogtreecommitdiff
path: root/printing/ppconstr.ml
diff options
context:
space:
mode:
authorHugo Herbelin2020-02-11 16:06:45 +0100
committerHugo Herbelin2020-02-11 16:06:45 +0100
commit6975536db325a0f4dcbcb609dd8959d45fc19830 (patch)
tree895e71bd5d99d838c34eac7696ac3e539b7ca3bf /printing/ppconstr.ml
parent4c6c173447d5b7d04aa0fd4f51d27a078c675708 (diff)
parent2c9d58c4680dd3c60dacf387a7ea457584bec42f (diff)
Merge PR #11235: Add syntax for non maximal implicit arguments
Reviewed-by: herbelin Reviewed-by: jfehrle Ack-by: maximedenes
Diffstat (limited to 'printing/ppconstr.ml')
-rw-r--r--printing/ppconstr.ml9
1 files changed, 6 insertions, 3 deletions
diff --git a/printing/ppconstr.ml b/printing/ppconstr.ml
index b55a41471a..2416819a6a 100644
--- a/printing/ppconstr.ml
+++ b/printing/ppconstr.ml
@@ -143,7 +143,8 @@ let tag_var = tag Tag.variable
let pr_generalization bk ak c =
let hd, tl =
match bk with
- | Implicit -> "{", "}"
+ | NonMaxImplicit -> "[", "]"
+ | MaxImplicit -> "{", "}"
| Explicit -> "(", ")"
in (* TODO: syntax Abstraction Kind *)
str "`" ++ str hd ++ c ++ str tl
@@ -324,12 +325,14 @@ let tag_var = tag Tag.variable
let surround_impl k p =
match k with
| Explicit -> str"(" ++ p ++ str")"
- | Implicit -> str"{" ++ p ++ str"}"
+ | NonMaxImplicit -> str"[" ++ p ++ str"]"
+ | MaxImplicit -> str"{" ++ p ++ str"}"
let surround_implicit k p =
match k with
| Explicit -> p
- | Implicit -> (str"{" ++ p ++ str"}")
+ | NonMaxImplicit -> str"[" ++ p ++ str"]"
+ | MaxImplicit -> (str"{" ++ p ++ str"}")
let pr_binder many pr (nal,k,t) =
match k with