packages feed

blaze-html 0.3.0.4 → 0.3.1.0

raw patch · 4 files changed

+42/−6 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Text.Blaze: lazyText :: Text -> Html
+ Text.Blaze: lazyTextValue :: Text -> AttributeValue
+ Text.Blaze: preEscapedLazyText :: Text -> Html
+ Text.Blaze: preEscapedLazyTextValue :: Text -> AttributeValue

Files

Text/Blaze.hs view
@@ -47,6 +47,8 @@       -- * Converting values to HTML.     , text     , preEscapedText+    , lazyText+    , preEscapedLazyText     , string     , preEscapedString     , showHtml@@ -60,6 +62,8 @@       -- * Converting values to attribute values.     , textValue     , preEscapedTextValue+    , lazyTextValue+    , preEscapedLazyTextValue     , stringValue     , preEscapedStringValue     , unsafeByteStringValue
Text/Blaze/Internal.hs view
@@ -23,6 +23,8 @@       -- * Converting values to HTML.     , text     , preEscapedText+    , lazyText+    , preEscapedLazyText     , string     , preEscapedString     , showHtml@@ -36,6 +38,8 @@       -- * Converting values to attribute values.     , textValue     , preEscapedTextValue+    , lazyTextValue+    , preEscapedLazyTextValue     , stringValue     , preEscapedStringValue     , unsafeByteStringValue@@ -54,6 +58,7 @@ import Data.Text (Text) import qualified Data.Text as T import qualified Data.Text.Encoding as T+import qualified Data.Text.Lazy as LT import GHC.Exts (IsString (..))  -- | A static string that supports efficient output to all possible backends.@@ -216,11 +221,24 @@  -- | Render text without escaping. ---preEscapedText :: Text  -- ^ Text to insert.-               -> Html  -- Resulting HTML fragment.+preEscapedText :: Text  -- ^ Text to insert+               -> Html  -- ^ Resulting HTML fragment preEscapedText = Content . PreEscaped . Text {-# INLINE preEscapedText #-} +-- | A variant of 'text' for lazy 'LT.Text'.+--+lazyText :: LT.Text  -- ^ Text to insert+         -> Html     -- ^ Resulting HTML fragment+lazyText = mconcat . map text . LT.toChunks+{-# INLINE lazyText #-}++-- | A variant of 'preEscapedText' for lazy 'LT.Text'+--+preEscapedLazyText :: LT.Text  -- ^ Text to insert+                   -> Html     -- ^ Resulting HTML fragment+preEscapedLazyText = mconcat . map preEscapedText . LT.toChunks+ -- | Create an HTML snippet from a 'String'. -- string :: String  -- ^ String to insert.@@ -285,10 +303,24 @@  -- | Render an attribute value from 'Text' without escaping. ---preEscapedTextValue :: Text            -- ^ Text to insert.-                    -> AttributeValue  -- Resulting HTML fragment.+preEscapedTextValue :: Text            -- ^ The actual value+                    -> AttributeValue  -- ^ Resulting attribute value preEscapedTextValue = AttributeValue . PreEscaped . Text {-# INLINE preEscapedTextValue #-}++-- | A variant of 'textValue' for lazy 'LT.Text'+--+lazyTextValue :: LT.Text         -- ^ The actual value+              -> AttributeValue  -- ^ Resulting attribute value+lazyTextValue = mconcat . map textValue . LT.toChunks+{-# INLINE lazyTextValue #-}++-- | A variant of 'preEscapedTextValue' for lazy 'LT.Text'+--+preEscapedLazyTextValue :: LT.Text         -- ^ The actual value+                        -> AttributeValue  -- ^ Resulting attribute value+preEscapedLazyTextValue = mconcat . map preEscapedTextValue . LT.toChunks+{-# INLINE preEscapedLazyTextValue #-}  -- | Create an attribute value from a 'String'. --
Text/Blaze/Renderer/Text.hs view
@@ -98,7 +98,7 @@ -- decode them that way. -- renderHtml :: Html    -- ^ HTML to render-           -> L.Text  -- ^ Resulting 'L.ByteString'+           -> L.Text  -- ^ Resulting 'L.Text' renderHtml = renderHtmlWith decodeUtf8 {-# INLINE renderHtml #-} 
blaze-html.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version:             0.3.0.4+Version:             0.3.1.0  -- A short (one-line) description of the package. Synopsis:            A blazingly fast HTML combinator library.