diff src/source_print.sml @ 563:44958d74c43f

Initial conversion to arbitrary-kind classes
author Adam Chlipala <adamc@hcoop.net>
date Fri, 19 Dec 2008 10:03:31 -0500
parents ae03d09043c1
children 8998114760c1
line wrap: on
line diff
--- a/src/source_print.sml	Fri Dec 19 09:35:44 2008 -0500
+++ b/src/source_print.sml	Fri Dec 19 10:03:31 2008 -0500
@@ -413,17 +413,25 @@
                                        string "~",
                                        space,
                                        p_con c2]
-      | SgiClassAbs x => box [string "class",
-                              space,
-                              string x]
-      | SgiClass (x, c) => box [string "class",
-                                space,
-                                string x,
-                                space,
-                                string "=",
-                                space,
-                                p_con c]
-
+      | SgiClassAbs (x, k) => box [string "class",
+                                   space,
+                                   string x,
+                                   space,
+                                   string "::",
+                                   space,
+                                   p_kind k]
+      | SgiClass (x, k, c) => box [string "class",
+                                   space,
+                                   string x,
+                                   space,
+                                   string "::",
+                                   space,
+                                   p_kind k,
+                                   space,
+                                   string "=",
+                                   space,
+                                   p_con c]
+                              
 and p_sgn (sgn, _) =
     case sgn of
         SgnConst sgis => box [string "sig",
@@ -562,13 +570,13 @@
       | DSequence x => box [string "sequence",
                             space,
                             string x]
-      | DClass (x, c) => box [string "class",
-                              space,
-                              string x,
-                              space,
-                              string "=",
-                              space,
-                              p_con c]
+      | DClass (x, k, c) => box [string "class",
+                                 space,
+                                 string x,
+                                 space,
+                                 string "=",
+                                 space,
+                                 p_con c]
 
       | DDatabase s => box [string "database",
                             space,