diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-09-19 13:32:33 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-09-19 13:32:33 -0400 |
commit | 11fd1db04f22101a5a0fa8e1d5b57126e75f6eb5 (patch) | |
tree | f50a6fffa9a2e6aaacfe70b509015a14b90a0a16 /src/monoize.sml | |
parent | e6166ff9bc4f189cadaf235672543890ef922d11 (diff) |
Grid sorting working
Diffstat (limited to 'src/monoize.sml')
-rw-r--r-- | src/monoize.sml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/monoize.sml b/src/monoize.sml index 865acff4..00230d1a 100644 --- a/src/monoize.sml +++ b/src/monoize.sml @@ -1024,6 +1024,15 @@ fun monoExp (env, st, fm) (all as (e, loc)) = 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 |