packages feed

happstack 0.5.0 → 0.5.0.2

raw patch · 3 files changed

+6/−6 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

happstack.cabal view
@@ -1,5 +1,5 @@ Name:                happstack-Version:             0.5.0+Version:             0.5.0.2 Synopsis:            The haskell application server stack + code generation Description:         The haskell application server stack License:             BSD3@@ -113,9 +113,9 @@ Executable happstack-tests   Main-Is: Test.hs   GHC-Options: -threaded-  Build-depends: HUnit   hs-source-dirs: tests, src   if flag(tests)     Buildable: True+    Build-depends: HUnit   else     Buildable: False
src/HSP/Google/Analytics.hs view
@@ -12,7 +12,7 @@ newtype UACCT = UACCT String -- ^ The UACCT provided to you by Google     deriving (Read, Show, Eq, Ord, Typeable, Data) --- |create the google analytics script tags+-- | create the google analytics script tags -- NOTE: you must put the <% analytics yourUACCT %> immediately before the </body> tag -- See also: addAnalytics analytics :: (XMLGenerator m) => UACCT -> GenXMLList m@@ -28,7 +28,7 @@             </script>        return [a,b] --- |automatically add the google analytics scipt tags immediately before the </body> element+-- | automatically add the google analytics scipt tags immediately before the </body> element -- NOTE: this function is not idepotent addAnalytics :: ( AppendChild m XML                 , EmbedAsChild m XML
src/Happstack/Server/HStringTemplate.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE ScopedTypeVariables, FlexibleInstances, PatternSignatures #-}+{-# LANGUAGE ScopedTypeVariables, FlexibleInstances, ScopedTypeVariables #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Happstack.Server.HStringTemplate (webST) where @@ -23,7 +23,7 @@  -- FIXME: Caveat, assumes text/html, can this be handled at the filter level? instance ToMessage (StringTemplate String) where-    toContentType _ = B.pack "text/plain;charset=utf-8"+    toContentType _ = B.pack "text/html;charset=utf-8"     toMessage = L.pack . render  -- | @webST name attrs@ renders a name template with attrs