diff --git a/Happstack/Server/Hamlet.hs b/Happstack/Server/Hamlet.hs
--- a/Happstack/Server/Hamlet.hs
+++ b/Happstack/Server/Hamlet.hs
@@ -8,14 +8,13 @@
 import qualified Data.ByteString.Char8      as B
 import qualified Data.ByteString.Lazy.Char8 as L
 import qualified Data.Map                   as M
-import qualified Data.Text.Lazy.Encoding    as T    
-
+import           Data.Text                  (Text)
 import Text.Hamlet
 import Happstack.Server
 
 
 -- |turn a 'Hamlet' template into a Happstack 'Response'
-hamletToResponse :: (url -> [(String, String)] -> String) -- ^ function to 'url' values in the template into their 'String' representation
+hamletToResponse :: (url -> [(Text, Text)] -> Text) -- ^ function to 'url' values in the template into their 'String' representation
                  -> Hamlet url  -- ^ a 'Hamlet' template
                  -> Response
 hamletToResponse showFn hamlet = 
diff --git a/happstack-hamlet.cabal b/happstack-hamlet.cabal
--- a/happstack-hamlet.cabal
+++ b/happstack-hamlet.cabal
@@ -1,5 +1,5 @@
 Name:                happstack-hamlet
-Version:             6.0.0
+Version:             6.1.0
 Synopsis:            Support for Hamlet HTML templates in Happstack
 
 Description:         Happstack is a web application development framework. 
@@ -27,8 +27,8 @@
   Build-depends:       base >= 3 && <5,
                        bytestring,
                        containers,
-                       happstack-server >= 6.0 && < 6.1 ,
-                       hamlet >= 0.5 && <0.8,
+                       happstack-server >= 6.0 && < 6.2,
+                       hamlet >= 0.8 && <0.9,
                        text
   
   -- Modules not exported by this package.
