hakyll 1.0 → 1.0.1
raw patch · 3 files changed
+6/−6 lines, 3 filesdep ~parallel
Dependency ranges changed: parallel
Files
- hakyll.cabal +2/−2
- src/Text/Hakyll/Page.hs +2/−2
- src/Text/Hakyll/Render/Internal.hs +2/−2
hakyll.cabal view
@@ -1,5 +1,5 @@ Name: hakyll-Version: 1.0+Version: 1.0.1 Synopsis: A simple static site generator library. Description:@@ -34,7 +34,7 @@ mtl >= 1.1, old-locale >= 1, time >= 1,- parallel >= 1+ parallel >= 2 exposed-modules: Text.Hakyll Text.Hakyll.Render Text.Hakyll.Renderable
src/Text/Hakyll/Page.hs view
@@ -10,7 +10,7 @@ import qualified Data.List as L import Data.Maybe (fromMaybe) -import Control.Parallel.Strategies (rnf, ($|))+import Control.Parallel.Strategies (rdeepseq, ($|)) import System.FilePath (FilePath, takeExtension) import System.IO@@ -123,7 +123,7 @@ , ("path", pagePath) ] ++ metaData - seq (($|) id rnf rendered) $ hClose handle+ seq (($|) id rdeepseq rendered) $ hClose handle -- Cache if needed if getFromCache then return () else cachePage page
src/Text/Hakyll/Render/Internal.hs view
@@ -14,7 +14,7 @@ import Data.List (isPrefixOf, foldl') import Data.Char (isAlpha) import Data.Maybe (fromMaybe)-import Control.Parallel.Strategies (rnf, ($|))+import Control.Parallel.Strategies (rdeepseq, ($|)) import Text.Hakyll.Renderable import Text.Hakyll.Page import Text.Hakyll.File@@ -54,7 +54,7 @@ let contextIgnoringRoot = M.insert "root" "$root" (manipulation context) body = regularSubstitute template contextIgnoringRoot -- Force the body to be rendered.- in ($|) id rnf (M.insert "body" body context)+ in ($|) id rdeepseq (M.insert "body" body context) -- | A pure renderAndConcat function. pureRenderAndConcatWith :: ContextManipulation