packages feed

happstack 0.5.0.2 → 0.5.0.3

raw patch · 3 files changed

+10/−10 lines, 3 filesdep ~mtlPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: mtl

API changes (from Hackage documentation)

Files

happstack.cabal view
@@ -1,5 +1,5 @@ Name:                happstack-Version:             0.5.0.2+Version:             0.5.0.3 Synopsis:            The haskell application server stack + code generation Description:         The haskell application server stack License:             BSD3@@ -84,7 +84,7 @@                        hsx >= 0.7 && < 0.8,                        hsp >= 0.5.2 && < 0.6,                        HStringTemplate >= 0.4.3 && < 0.7,-                       mtl,+                       mtl >= 1.1 && < 2.1,                        old-time,                        utf8-string,                        text
src/HSP/ServerPartT.hs view
@@ -3,9 +3,9 @@ module HSP.ServerPartT where  import HSP-import Control.Applicative ((<$>))-import qualified Data.Text as T-import qualified Data.Text.Lazy as TL+import Control.Monad              (liftM)+import qualified Data.Text        as T+import qualified Data.Text.Lazy   as TL import qualified HSX.XMLGenerator as HSX import Happstack.Server (ServerPartT) @@ -14,8 +14,8 @@     newtype HSX.Child (ServerPartT m) = SChild { unSChild :: XML }     newtype HSX.Attribute (ServerPartT m) = SAttr { unSAttr :: Attribute }     genElement n attrs children = -        do attribs <- map unSAttr <$> asAttr attrs-           childer <- flattenCDATA . map unSChild <$> asChild children+        do attribs <- map unSAttr `liftM` asAttr attrs+           childer <- (flattenCDATA . map unSChild) `liftM`asChild children            HSX.XMLGenT $ return (Element                               (toName n)                               attribs
src/HSP/WebT.hs view
@@ -3,7 +3,7 @@ module HSP.WebT where  import HSP-import Control.Applicative ((<$>))+import Control.Monad (liftM) import qualified Data.Text as T import qualified Data.Text.Lazy as TL import qualified HSX.XMLGenerator as HSX@@ -14,8 +14,8 @@     newtype HSX.Child (WebT m) = WChild { unWChild :: XML }     newtype HSX.Attribute (WebT m) = WAttr { unWAttr :: Attribute }     genElement n attrs children = -        do attribs <- map unWAttr <$> asAttr attrs-           childer <- flattenCDATA . map unWChild <$> asChild children+        do attribs <- map unWAttr `liftM` asAttr attrs+           childer <- (flattenCDATA . map unWChild) `liftM` asChild children            HSX.XMLGenT $ return (Element                               (toName n)                               attribs