diff src/source_print.sml @ 211:e86411f647c6

Initial type class support
author Adam Chlipala <adamc@hcoop.net>
date Sat, 16 Aug 2008 14:32:18 -0400
parents f4033abd6ab1
children 5292c0113024
line wrap: on
line diff
--- a/src/source_print.sml	Sat Aug 16 12:35:46 2008 -0400
+++ b/src/source_print.sml	Sat Aug 16 14:32:18 2008 -0400
@@ -379,6 +379,16 @@
                                 string ":",
                                 space,
                                 p_con c]
+      | SgiClassAbs x => box [string "class",
+                              space,
+                              string x]
+      | SgiClass (x, c) => box [string "class",
+                                space,
+                                string x,
+                                space,
+                                string "=",
+                                space,
+                                p_con c]
 
 and p_sgn (sgn, _) =
     case sgn of
@@ -531,6 +541,13 @@
                               string ":",
                               space,
                               p_con c]
+      | DClass (x, c) => box [string "class",
+                              space,
+                              string x,
+                              space,
+                              string "=",
+                              space,
+                              p_con c]
 
 and p_str (str, _) =
     case str of