summaryrefslogtreecommitdiff
path: root/src/core_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-16 15:03:05 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-16 15:03:05 -0400
commit6cac02596e21666de5658f83957d3fa7d7b60a8c (patch)
treeba8d7f45822b7cba62fe659ce25ea3504475ef73 /src/core_print.sml
parente9456cb231725d65a9cdd11dc3d4549fe7254e06 (diff)
Corifying con-tuples
Diffstat (limited to 'src/core_print.sml')
-rw-r--r--src/core_print.sml10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core_print.sml b/src/core_print.sml
index 52c7648d..66432866 100644
--- a/src/core_print.sml
+++ b/src/core_print.sml
@@ -49,6 +49,9 @@ fun p_kind' par (k, _) =
| KName => string "Name"
| KRecord k => box [string "{", p_kind k, string "}"]
| KUnit => string "Unit"
+ | KTuple ks => box [string "(",
+ p_list_sep (box [space, string "*", space]) p_kind ks,
+ string ")"]
and p_kind k = p_kind' false k
@@ -137,6 +140,13 @@ fun p_con' par env (c, _) =
p_con env c2])
| CFold _ => string "fold"
| CUnit => string "()"
+
+ | CTuple cs => box [string "(",
+ p_list (p_con env) cs,
+ string ")"]
+ | CProj (c, n) => box [p_con env c,
+ string ".",
+ string (Int.toString n)]
and p_con env = p_con' false env