diff --git a/Happstack/Foundation.hs b/Happstack/Foundation.hs
--- a/Happstack/Foundation.hs
+++ b/Happstack/Foundation.hs
@@ -75,10 +75,12 @@
 import Data.Data
 import Data.SafeCopy
 import Data.Text as Text
+import qualified Data.Text.Lazy as Lazy
 import Data.String (IsString(..))
 import Control.Monad.Reader
 import Control.Monad.State
-import HSP  (XMLGenerator(..), XMLGen(..), EmbedAsChild(..), EmbedAsAttr(..), XML, XMLGenT(..), unXMLGenT, XMLType, Attr(..))
+import Happstack.Server.XMLGenT () -- instances for (Happstack (XMLGenT m))
+import HSP  (XMLGenerator(..), XMLGen(..), EmbedAsChild(..), EmbedAsAttr(..), XML, XMLGenT(..), unXMLGenT, XMLType, Attr(..), fromStringLit)
 import Text.Reform
 import Text.Reform.Happstack
 import Text.Reform.HSP.Text
@@ -223,7 +225,7 @@
                    , EmbedAsChild (FoundationT' url acidState requestState m) headers
                    , XMLType (FoundationT' url acidState requestState m) ~ XML
                    ) =>
-                   String
+                   Lazy.Text
                 -> headers
                 -> body
                 -> FoundationT url acidState requestState m XML
diff --git a/happstack-foundation.cabal b/happstack-foundation.cabal
--- a/happstack-foundation.cabal
+++ b/happstack-foundation.cabal
@@ -1,5 +1,5 @@
 Name:                happstack-foundation
-Version:             0.3.1
+Version:             0.4.0
 Synopsis:            Glue code for using Happstack with acid-state, web-routes, reform, and HSP
 Description:         happstack-foundation is a library which builds on top of existing components
                      to provide a powerful and type-safe environment for web development. It uses:
@@ -26,19 +26,19 @@
   Exposed-modules:   Happstack.Foundation
   Build-Depends:
                      base                  < 5,
-                     acid-state            >= 0.7 && < 0.9,
-                     happstack-hsp         == 7.1.*,
-                     happstack-server      >= 7.0 && < 7.2,
-                     hsp                   == 0.7.*,
+                     acid-state            >= 0.7 && < 0.12,
+                     happstack-hsp         == 7.2.*,
+                     happstack-server      >= 7.0 && < 7.4,
+                     hsp                   == 0.9.*,
                      lifted-base           >= 0.1 && < 0.3,
                      monad-control         == 0.3.*,
                      mtl                   >= 2.0 && < 2.2,
-                     reform                == 0.1.*,
-                     reform-happstack      == 0.1.*,
-                     reform-hsp            == 0.1.*,
+                     reform                == 0.2.*,
+                     reform-happstack      == 0.2.*,
+                     reform-hsp            == 0.2.*,
                      safecopy              >= 0.7 && < 0.9,
                      text                  == 0.11.*,
                      web-routes            == 0.27.*,
                      web-routes-happstack  == 0.23.*,
-                     web-routes-hsp        == 0.23.*,
+                     web-routes-hsp        == 0.24.*,
                      web-routes-th         == 0.22.*
