packages feed

happstack-jmacro 6.0.2 → 6.0.3

raw patch · 2 files changed

+6/−4 lines, 2 filesdep +pretty

Dependencies added: pretty

Files

Happstack/Server/JMacro.hs view
@@ -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
happstack-jmacro.cabal view
@@ -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.*