From f498a43c643b95e9381f1c006e875e290a805eec Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Sun, 28 Dec 2014 15:27:59 +0100 Subject: Fix dependency handling bug Closes #321 --- src/Hakyll/Core/Compiler/Internal.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Hakyll/Core/Compiler') 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! -- cgit v1.2.3