diff src/monoize.sml @ 961:8c37699de273

Grid sorting working
author Adam Chlipala <adamc@hcoop.net>
date Sat, 19 Sep 2009 13:32:33 -0400
parents 01a4d936395a
children 8371d12ae63f
line wrap: on
line diff
--- a/src/monoize.sml	Sat Sep 19 10:56:09 2009 -0400
+++ b/src/monoize.sml	Sat Sep 19 13:32:33 2009 -0400
@@ -1024,6 +1024,15 @@
                        boolBin "<",
                        boolBin "<=")
             end
+          | L.ECApp ((L.EFfi ("Basis", "mkOrd"), _), t) =>
+            let
+                val t = monoType env t
+                val b = (L'.TFfi ("Basis", "bool"), loc)
+                val dom = ordTy t
+            in
+                ((L'.EAbs ("f", dom, dom,
+                           (L'.ERel 0, loc)), loc), fm)
+            end
                        
           | L.ECApp ((L.EFfi ("Basis", "show"), _), t) =>
             let