diff src/mono_print.sml @ 182:d11754ffe252

Compiled pattern matching to C
author Adam Chlipala <adamc@hcoop.net>
date Sun, 03 Aug 2008 12:43:20 -0400
parents 3bbed533fbd2
children c0ea24dcb86f
line wrap: on
line diff
--- a/src/mono_print.sml	Sun Aug 03 11:17:33 2008 -0400
+++ b/src/mono_print.sml	Sun Aug 03 12:43:20 2008 -0400
@@ -89,7 +89,7 @@
 fun p_pat' par env (p, _) =
     case p of
         PWild => string "_"
-      | PVar s => string s
+      | PVar (s, _) => string s
       | PPrim p => Prim.p_t p
       | PCon (n, NONE) => p_patCon env n
       | PCon (n, SOME p) => parenIf par (box [p_patCon env n,
@@ -97,7 +97,7 @@
                                               p_pat' true env p])
       | PRecord xps =>
         box [string "{",
-             p_list_sep (box [string ",", space]) (fn (x, p) =>
+             p_list_sep (box [string ",", space]) (fn (x, p, _) =>
                                                       box [string x,
                                                            space,
                                                            string "=",