diff src/monoize.sml @ 452:222cbc1da232

Fix some type-class detection
author Adam Chlipala <adamc@hcoop.net>
date Sat, 01 Nov 2008 17:19:12 -0400
parents 07f6576aeb0a
children 21bb5bbba2e9
line wrap: on
line diff
--- a/src/monoize.sml	Sat Nov 01 16:50:28 2008 -0400
+++ b/src/monoize.sml	Sat Nov 01 17:19:12 2008 -0400
@@ -844,6 +844,15 @@
             ((L'.EFfi ("Basis", "boolToString"), loc), fm)
           | L.EFfi ("Basis", "show_time") =>
             ((L'.EFfi ("Basis", "timeToString"), loc), fm)
+          | L.ECApp ((L.EFfi ("Basis", "mkShow"), _), t) =>
+            let
+                val t = monoType env t
+                val b = (L'.TFfi ("Basis", "string"), loc)
+                val dom = (L'.TFun (t, b), loc)
+            in
+                ((L'.EAbs ("f", dom, dom,
+                           (L'.ERel 0, loc)), loc), fm)
+            end
 
           | L.ECApp ((L.EFfi ("Basis", "read"), _), t) =>
             let