summaryrefslogtreecommitdiff
path: root/src/Hakyll
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2014-12-28 15:27:59 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2014-12-28 15:28:45 +0100
commitf498a43c643b95e9381f1c006e875e290a805eec (patch)
tree891b505b618f9ff471adbf1991dc0be268126164 /src/Hakyll
parent5a69870289db3bc94de4d6243525b6995a0df2a9 (diff)
downloadhakyll-f498a43c643b95e9381f1c006e875e290a805eec.tar.gz
Fix dependency handling bug
Closes #321
Diffstat (limited to 'src/Hakyll')
-rw-r--r--src/Hakyll/Core/Compiler/Internal.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Hakyll/Core/Compiler/Internal.hs b/src/Hakyll/Core/Compiler/Internal.hs
index ed7880f..61fb640 100644
--- a/src/Hakyll/Core/Compiler/Internal.hs
+++ b/src/Hakyll/Core/Compiler/Internal.hs
@@ -131,7 +131,9 @@ instance Monad Compiler where
res' <- unCompiler (f x) r
return $ case res' of
CompilerDone y w' -> CompilerDone y (w `mappend` w')
- CompilerSnapshot s c' -> CompilerSnapshot s c'
+ CompilerSnapshot s c' -> CompilerSnapshot s $ do
+ compilerTell w -- Save dependencies!
+ c'
CompilerError e -> CompilerError e
CompilerRequire i c' -> CompilerRequire i $ do
compilerTell w -- Save dependencies!