diff src/elab_print.sml @ 176:33d4a8eea484

Case through explify
author Adam Chlipala <adamc@hcoop.net>
date Thu, 31 Jul 2008 16:28:55 -0400
parents b2d752455182
children d11754ffe252
line wrap: on
line diff
--- a/src/elab_print.sml	Thu Jul 31 13:08:57 2008 -0400
+++ b/src/elab_print.sml	Thu Jul 31 16:28:55 2008 -0400
@@ -220,17 +220,15 @@
       | PCon (pc, SOME p) => parenIf par (box [p_patCon env pc,
                                                space,
                                                p_pat' true env p])
-      | PRecord (xps, flex) =>
-        let
-            val pps = map (fn (x, p) => box [string x, space, string "=", space, p_pat env p]) xps
-        in
-            box [string "{",
-                 p_list_sep (box [string ",", space]) (fn x => x)
-                 (case flex of
-                      NONE => pps
-                    | SOME _ => pps @ [string "..."]),
-                 string "}"]
-        end
+      | PRecord xps =>
+        box [string "{",
+             p_list_sep (box [string ",", space]) (fn (x, p) =>
+                                                      box [string x,
+                                                           space,
+                                                           string "=",
+                                                           space,
+                                                           p_pat env p]) xps,
+             string "}"]
 
 and p_pat x = p_pat' false x