happstack-hsp 7.3.1 → 7.3.2
raw patch · 2 files changed
+6/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
happstack-hsp.cabal view
@@ -1,5 +1,5 @@ Name: happstack-hsp-Version: 7.3.1+Version: 7.3.2 Synopsis: Support for using HSP templates in Happstack Description: Happstack is a web application framework. HSP is an XML templating solution. This package makes it easy to use HSP templates with Happstack. Homepage: http://www.happstack.com/
src/Happstack/Server/HSP/HTML.hs view
@@ -1,6 +1,6 @@ -- | support for using HSP+Happstack for rendering HTML-{-# LANGUAGE FlexibleInstances, FlexibleContexts, TypeFamilies, OverloadedStrings #-}-{-# OPTIONS_GHC -fno-warn-orphans -F -pgmFhsx2hs #-}+{-# LANGUAGE FlexibleInstances, FlexibleContexts, QuasiQuotes, TypeFamilies, OverloadedStrings #-}+{-# OPTIONS_GHC -fno-warn-orphans #-} module Happstack.Server.HSP.HTML ( defaultTemplate ) where@@ -12,6 +12,7 @@ import qualified Data.Text.Lazy.Encoding as TL import qualified Data.Text.Lazy as TL import Data.Text.Lazy (Text)+import Language.Haskell.HSX.QQ (hsx) import Control.Monad (liftM) import Happstack.Server@@ -46,7 +47,7 @@ -> body -- ^ content to put between the \<body\> tags. -> m (XMLType m) defaultTemplate title headers body =- unXMLGenT $+ unXMLGenT $ [hsx| <html> <head> <title><% title %></title>@@ -56,3 +57,4 @@ <% body %> </body> </html>+ |]