aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/source_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-06-08 14:25:27 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-06-08 14:25:27 -0400
commit33cf695e0ba9586f05242b7d3595c94ed5c99b98 (patch)
tree2107ff15033d8138633b227ee9e6323c7346b788 /src/source_print.sml
parent59cf4e73d9d6998ea4a83aa38c75c95ed462779f (diff)
Unification wildcards
Diffstat (limited to 'src/source_print.sml')
-rw-r--r--src/source_print.sml6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/source_print.sml b/src/source_print.sml
index 3db15ec6..90524241 100644
--- a/src/source_print.sml
+++ b/src/source_print.sml
@@ -44,6 +44,7 @@ fun p_kind' par (k, _) =
p_kind k2])
| KName => string "Name"
| KRecord k => box [string "{", p_kind k, string "}"]
+ | KWild => string "_"
and p_kind k = p_kind' false k
@@ -118,6 +119,11 @@ fun p_con' par (c, _) =
string "++",
space,
p_con c2])
+ | CWild k => box [string "(_",
+ space,
+ string "::",
+ space,
+ p_kind k]
and p_con c = p_con' false c