diff src/monoize.sml @ 436:024478c34f4d

time type
author Adam Chlipala <adamc@hcoop.net>
date Thu, 30 Oct 2008 14:36:48 -0400
parents 0ce90d4d9ae7
children 1a4c1b5f4d8f
line wrap: on
line diff
--- a/src/monoize.sml	Tue Oct 28 15:05:16 2008 -0400
+++ b/src/monoize.sml	Thu Oct 30 14:36:48 2008 -0400
@@ -820,6 +820,8 @@
             end
           | L.EFfi ("Basis", "show_bool") =>
             ((L'.EFfi ("Basis", "boolToString"), loc), fm)
+          | L.EFfi ("Basis", "show_time") =>
+            ((L'.EFfi ("Basis", "timeToString"), loc), fm)
 
           | L.ECApp ((L.EFfi ("Basis", "read"), _), t) =>
             let
@@ -873,6 +875,15 @@
                   loc),
                  fm)
             end
+          | L.EFfi ("Basis", "read_time") =>
+            let
+                val t = (L'.TFfi ("Basis", "time"), loc)
+            in
+                ((L'.ERecord [("Read", (L'.EFfi ("Basis", "stringToTime"), loc), readType' (t, loc)),
+                              ("ReadError", (L'.EFfi ("Basis", "stringToTime_error"), loc), readErrType (t, loc))],
+                  loc),
+                 fm)
+            end
 
           | L.ECApp ((L.EFfi ("Basis", "return"), _), t) =>
             let