diff --git a/Happstack/Server/JMacro.hs b/Happstack/Server/JMacro.hs
--- a/Happstack/Server/JMacro.hs
+++ b/Happstack/Server/JMacro.hs
@@ -11,7 +11,8 @@
 import Data.ByteString.Lazy.UTF8       as LB
 import Happstack.Server                (ToMessage(..))
 import Language.Javascript.JMacro      (JStat(..), renderJs)
-    
+import Text.PrettyPrint                (Style(mode), Mode(OneLineMode), style, renderStyle)
+
 instance ToMessage JStat where
     toContentType _  = S.pack "text/javascript; charset=UTF-8"
-    toMessage     js = LB.fromString (show $ renderJs js)
+    toMessage     js = LB.fromString . renderStyle (style { mode = OneLineMode }) . renderJs $ js
diff --git a/happstack-jmacro.cabal b/happstack-jmacro.cabal
--- a/happstack-jmacro.cabal
+++ b/happstack-jmacro.cabal
@@ -1,12 +1,12 @@
 Name:                happstack-jmacro
-Version:             6.0.2
+Version:             6.0.3
 Synopsis:            Support for using JMacro with Happstack
 Homepage:            http://www.happstack.com/
 License:             BSD3
 License-file:        LICENSE
 Author:              Jeremy Shaw
 Maintainer:          jeremy@n-heptane.com
--- Copyright:           
+-- Copyright:
 Stability:           Provisional
 Category:            Web
 Build-type:          Simple
@@ -20,4 +20,5 @@
      bytestring       == 0.9.*,
      jmacro           == 0.5.*,
      happstack-server >= 6.4 && <6.7,
+     pretty           == 1.0.* || == 1.1.*,
      utf8-string      == 0.3.*
