diff src/mono_opt.sml @ 196:890a61991263

Lists all the way through
author Adam Chlipala <adamc@hcoop.net>
date Sat, 09 Aug 2008 16:48:32 -0400
parents 8e9f97508f0d
children 7f6620853c36
line wrap: on
line diff
--- a/src/mono_opt.sml	Sat Aug 09 12:50:49 2008 -0400
+++ b/src/mono_opt.sml	Sat Aug 09 16:48:32 2008 -0400
@@ -135,6 +135,11 @@
       | 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 @@
         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))