diff options
Diffstat (limited to 'src/mono_opt.sml')
-rw-r--r-- | src/mono_opt.sml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mono_opt.sml b/src/mono_opt.sml index 64eef7e3..997bb9be 100644 --- a/src/mono_opt.sml +++ b/src/mono_opt.sml @@ -293,6 +293,14 @@ fun exp e = else e + | EWrite (EQuery {exps, tables, state, query, + initial = (EPrim (Prim.String ""), _), + body = (EStrcat ((ERel 0, _), e'), _)}, loc) => + EQuery {exps = exps, tables = tables, query = query, + state = (TRecord [], loc), + initial = (ERecord [], loc), + body = (optExp (EWrite e', loc), loc)} + | _ => e and optExp e = #1 (U.Exp.map {typ = typ, exp = exp} e) |