summaryrefslogtreecommitdiff
path: root/src/mono_opt.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-09 16:48:32 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-09 16:48:32 -0400
commit3e59b823392701f538f972d689d04b0182696e51 (patch)
tree5a4f935084c734ee1634b76abe5d2d5f1abf8bcc /src/mono_opt.sml
parente699687ba2ff0cc2c7c185c4d99669f77093473b (diff)
Lists all the way through
Diffstat (limited to 'src/mono_opt.sml')
-rw-r--r--src/mono_opt.sml7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mono_opt.sml b/src/mono_opt.sml
index 38812167..4b417217 100644
--- a/src/mono_opt.sml
+++ b/src/mono_opt.sml
@@ -135,6 +135,11 @@ fun exp e =
| ESeq ((EWrite (EPrim (Prim.String s1), _), loc),
(EWrite (EPrim (Prim.String s2), _), _)) =>
EWrite (EPrim (Prim.String (s1 ^ s2)), loc)
+ | ESeq ((EWrite (EPrim (Prim.String s1), _), loc),
+ (ESeq ((EWrite (EPrim (Prim.String s2), _), _),
+ e), _)) =>
+ ESeq ((EWrite (EPrim (Prim.String (s1 ^ s2)), loc), loc),
+ e)
| EFfiApp ("Basis", "htmlifyString", [(EPrim (Prim.String s), _)]) =>
EPrim (Prim.String (htmlifyString s))
@@ -142,6 +147,8 @@ fun exp e =
EWrite (EPrim (Prim.String (htmlifyString s)), loc)
| EWrite (EFfiApp ("Basis", "htmlifyString", [e]), _) =>
EFfiApp ("Basis", "htmlifyString_w", [e])
+ | EFfiApp ("Basis", "htmlifyString_w", [(EPrim (Prim.String s), loc)]) =>
+ EWrite (EPrim (Prim.String (htmlifyString s)), loc)
| EFfiApp ("Basis", "attrifyInt", [(EPrim (Prim.Int n), _)]) =>
EPrim (Prim.String (attrifyInt n))