diff options
author | Adam Chlipala <adam@chlipala.net> | 2011-10-15 09:04:41 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2011-10-15 09:04:41 -0400 |
commit | e2a639a782d2c7be434b819156fb924c7d955f12 (patch) | |
tree | 49c7507ba8ae3e2d432d2b6b22e33bf22564142d /src | |
parent | 8a167261f4de68926907c3cc97f8252957274bff (diff) |
For new IF, fix Monoize typing and add to manual
Diffstat (limited to 'src')
-rw-r--r-- | src/monoize.sml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/monoize.sml b/src/monoize.sml index e33513f8..e570b4cb 100644 --- a/src/monoize.sml +++ b/src/monoize.sml @@ -2816,9 +2816,9 @@ fun monoExp (env, st, fm) (all as (e, loc)) = val s = (L'.TFfi ("Basis", "string"), loc) fun sc s = (L'.EPrim (Prim.String s), loc) in - ((L'.EAbs ("if", s, (L'.TFun (s, s), loc), + ((L'.EAbs ("if", s, (L'.TFun (s, (L'.TFun (s, s), loc)), loc), (L'.EAbs ("then", s, (L'.TFun (s, s), loc), - (L'.EAbs ("else", s, (L'.TFun (s, s), loc), + (L'.EAbs ("else", s, s, strcat [sc "(CASE WHEN (", (L'.ERel 2, loc), sc ") THEN (", |