@@ -11,11 +11,11 @@ module Text.Hakyll.Render.Internal
12import qualified Data.Map as M
12import qualified Data.Map as M
13import Text.Hakyll.Context (Context, ContextManipulation)
13import Text.Hakyll.Context (Context, ContextManipulation)
14+import Control.DeepSeq (deepseq)
14import Control.Monad.Reader (liftIO)
15import Control.Monad.Reader (liftIO)
15import Data.List (isPrefixOf, foldl')
16import Data.List (isPrefixOf, foldl')
16import Data.Char (isAlphaNum)
17import Data.Char (isAlphaNum)
17import Data.Maybe (fromMaybe)
18import Data.Maybe (fromMaybe)
18−import Control.Parallel.Strategies (rdeepseq, ($|))
20import Text.Hakyll.Renderable
20import Text.Hakyll.Renderable
21import Text.Hakyll.Page
21import Text.Hakyll.Page
@@ -57,7 +57,7 @@ pureRenderWith manipulation template context =
57 let contextIgnoringRoot = M.insert "root" "$root" (manipulation context)
57 let contextIgnoringRoot = M.insert "root" "$root" (manipulation context)
58 body = regularSubstitute template contextIgnoringRoot
58 body = regularSubstitute template contextIgnoringRoot
59 -- Force the body to be rendered.
59 -- Force the body to be rendered.
60− in ($|) id rdeepseq (M.insert "body" body context)
60+ in body `deepseq` M.insert "body" body context
62-- | A pure renderAndConcat function.
62-- | A pure renderAndConcat function.
63pureRenderAndConcatWith :: ContextManipulation
63pureRenderAndConcatWith :: ContextManipulation