packages feed

hakyll 3.2.0.2 → 3.2.0.3

raw patch · 2 files changed

+8/−6 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

hakyll.cabal view
@@ -1,5 +1,5 @@ Name:    hakyll-Version: 3.2.0.2+Version: 3.2.0.3  Synopsis: A static website compiler library Description:
src/Hakyll/Web/Page.hs view
@@ -109,8 +109,12 @@ pageCompilerWithPandoc :: ParserState -> WriterOptions                        -> (Pandoc -> Pandoc)                        -> Compiler Resource (Page String)-pageCompilerWithPandoc state options f =-    pageCompilerWithFields state options f id+pageCompilerWithPandoc state options f = cached cacheName $+    readPageCompiler >>> addDefaultFields >>> arr applySelf+                     >>> pageReadPandocWith state+                     >>> arr (fmap (writePandocWith options . f))+  where+    cacheName = "Hakyll.Web.Page.pageCompilerWithPandoc"  -- | This is another, even more advanced version of 'pageCompilerWithPandoc'. -- This function allows you to provide an arrow which is applied before the@@ -121,12 +125,10 @@                        -> (Pandoc -> Pandoc)                        -> Compiler (Page String) (Page String)                        -> Compiler Resource (Page String)-pageCompilerWithFields state options f g = cached cacheName $+pageCompilerWithFields state options f g =     readPageCompiler >>> addDefaultFields >>> g >>> arr applySelf                      >>> pageReadPandocWith state                      >>> arr (fmap (writePandocWith options . f))-  where-    cacheName = "Hakyll.Web.Page.pageCompilerWithFields"  -- | Add a number of default metadata fields to a page. These fields include: --