diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-23 10:25:47 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-23 10:25:47 +0100 |
commit | d7f04a2c6d036363a6257f32409e86fb6112f6ac (patch) | |
tree | ab9e2968f99bbf2354d6e87edc5fcd0d35f70b24 /src/Text/Hakyll/Render | |
parent | aaa777180948074f2d65a23aedc4f7fc7e3d4761 (diff) | |
download | hakyll-d7f04a2c6d036363a6257f32409e86fb6112f6ac.tar.gz |
Strictness cleanup.
Diffstat (limited to 'src/Text/Hakyll/Render')
-rw-r--r-- | src/Text/Hakyll/Render/Internal.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Hakyll/Render/Internal.hs b/src/Text/Hakyll/Render/Internal.hs index 51eecc7..27459ad 100644 --- a/src/Text/Hakyll/Render/Internal.hs +++ b/src/Text/Hakyll/Render/Internal.hs @@ -11,11 +11,11 @@ module Text.Hakyll.Render.Internal import qualified Data.Map as M import Text.Hakyll.Context (Context, ContextManipulation) +import Control.DeepSeq (deepseq) import Control.Monad.Reader (liftIO) import Data.List (isPrefixOf, foldl') import Data.Char (isAlphaNum) import Data.Maybe (fromMaybe) -import Control.Parallel.Strategies (rdeepseq, ($|)) import Text.Hakyll.Renderable import Text.Hakyll.Page @@ -57,7 +57,7 @@ pureRenderWith manipulation template context = let contextIgnoringRoot = M.insert "root" "$root" (manipulation context) body = regularSubstitute template contextIgnoringRoot -- Force the body to be rendered. - in ($|) id rdeepseq (M.insert "body" body context) + in body `deepseq` M.insert "body" body context -- | A pure renderAndConcat function. pureRenderAndConcatWith :: ContextManipulation |