hakyll-blaze-templates 0.1.0.0 → 0.1.1.0
raw patch · 2 files changed
+14/−15 lines, 2 filesdep +blaze-markupdep ~basedep ~blaze-htmldep ~hakyllPVP ok
version bump matches the API change (PVP)
Dependencies added: blaze-markup
Dependency ranges changed: base, blaze-html, hakyll
API changes (from Hackage documentation)
+ Hakyll.Web.Template.Blaze: preEscapedString :: String -> Markup
+ Hakyll.Web.Template.Blaze: string :: String -> Markup
Files
hakyll-blaze-templates.cabal view
@@ -7,7 +7,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 0.1.0.0+version: 0.1.1.0 -- A short (one-line) description of the package. synopsis: Blaze templates for Hakyll@@ -48,10 +48,10 @@ -- other-modules: -- Other library packages from which modules are imported.- build-depends: base == 4.6.*,- hakyll == 4.2.*,- blaze-html == 0.6.*+ build-depends: base == 4.*+ , hakyll >= 4.0 && < 4.3+ , blaze-html >= 0.5 && < 0.7+ , blaze-markup >= 0.5.1 && < 0.6 -- Directories containing source files. hs-source-dirs: src-
src/Hakyll/Web/Template/Blaze.hs view
@@ -3,6 +3,10 @@ , applyTemplate , applyTemplateList , applyTemplateListWith++ , string+ , preEscapedString+ -- For API compatibility with first release , toHtml , safeToHtml ) where@@ -12,6 +16,7 @@ import Data.Monoid (mappend) import Data.List (intercalate) import Text.Blaze.Html (Html)+import Text.Blaze.Internal (string, preEscapedString) import qualified Text.Blaze.Html as H import Text.Blaze.Html.Renderer.String (renderHtml) @@ -46,15 +51,9 @@ toHtml, safeToHtml :: String -> Html--- | Synonym for blaze's toHtml. The only difference being that input string is--- enforced to String type. This is necessary for easy use of this function--- with -XOverloadedStrings. Otherwise compiler can't infer the appropriate--- type to use and fails.-toHtml = H.toHtml+-- | toHtml specialised to String.+toHtml = string --- | Synonym for blaze's preEscapedToHtml. The only difference being that input--- string is enforced to String type. This is necessary for easy use of this--- function with -XOverloadedStrings. Otherwise compiler can't infer the--- appropriate type to use and fails.+-- | preEscapedToHtml specialised to String -- Also safeToHtml sounds better than preEscapedToHtml-safeToHtml = H.preEscapedToHtml+safeToHtml = preEscapedString