diff src/mono_print.sml @ 188:8e9f97508f0d

Datatype representation optimization
author Adam Chlipala <adamc@hcoop.net>
date Sun, 03 Aug 2008 19:49:21 -0400
parents 88d46972de53
children 890a61991263
line wrap: on
line diff
--- a/src/mono_print.sml	Sun Aug 03 19:01:16 2008 -0400
+++ b/src/mono_print.sml	Sun Aug 03 19:49:21 2008 -0400
@@ -53,7 +53,7 @@
                                             space,
                                             p_typ env t]) xcs,
                             string "}"]
-      | TDatatype (n, _) =>
+      | TDatatype (_, n, _) =>
         ((if !debug then
               string (#1 (E.lookupDatatype env n) ^ "__" ^ Int.toString n)
           else
@@ -91,8 +91,8 @@
         PWild => string "_"
       | 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,
+      | PCon (_, n, NONE) => p_patCon env n
+      | PCon (_, n, SOME p) => parenIf par (box [p_patCon env n,
                                               space,
                                               p_pat' true env p])
       | PRecord xps =>
@@ -117,10 +117,10 @@
               string (#1 (E.lookupERel env n)))
          handle E.UnboundRel _ => string ("UNBOUND_" ^ Int.toString n))
       | ENamed n => p_enamed env n
-      | ECon (pc, NONE) => p_patCon env pc
-      | ECon (pc, SOME e) => parenIf par (box [p_patCon env pc,
-                                               space,
-                                               p_exp' true env e])
+      | ECon (_, pc, NONE) => p_patCon env pc
+      | ECon (_, pc, SOME e) => parenIf par (box [p_patCon env pc,
+                                                  space,
+                                                  p_exp' true env e])
 
       | EFfi (m, x) => box [string "FFI(", string m, string ".", string x, string ")"]
       | EFfiApp (m, x, es) => box [string "FFI(",