diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-06-08 15:47:44 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-06-08 15:47:44 -0400 |
commit | e18863bcabc5d185b7fe1fc750bdf0bbdb5a4f78 (patch) | |
tree | 180c8271605929d6c902c4dda9b8b756ff0e1fda /src/source_print.sml | |
parent | b0bf85209e8ddd4937393908d953f451556e73e9 (diff) |
Some con reducing
Diffstat (limited to 'src/source_print.sml')
-rw-r--r-- | src/source_print.sml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/source_print.sml b/src/source_print.sml index 90524241..9c3b870b 100644 --- a/src/source_print.sml +++ b/src/source_print.sml @@ -79,7 +79,7 @@ fun p_con' par (c, _) = p_con c]) | TRecord (CRecord xcs, _) => box [string "{", p_list (fn (x, c) => - box [p_con x, + box [p_name x, space, string ":", space, @@ -127,6 +127,11 @@ fun p_con' par (c, _) = and p_con c = p_con' false c +and p_name (all as (c, _)) = + case c of + CName s => string s + | _ => p_con all + fun p_exp' par (e, _) = case e of EAnnot (e, t) => box [string "(", |