From e9456cb231725d65a9cdd11dc3d4549fe7254e06 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 16 Aug 2008 14:45:23 -0400 Subject: Explifying type classes --- src/expl_print.sml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/expl_print.sml') diff --git a/src/expl_print.sml b/src/expl_print.sml index d3638d18..f854c03d 100644 --- a/src/expl_print.sml +++ b/src/expl_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 @@ -147,6 +150,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 -- cgit v1.2.3