From 6f4ccbdc49c5662dcb9be59851310449ad4fd98d Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Fri, 12 Dec 2014 16:33:50 +0100 Subject: Fix dependency handling for snapshots --- src/Hakyll/Core/Compiler.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Hakyll/Core/Compiler.hs') diff --git a/src/Hakyll/Core/Compiler.hs b/src/Hakyll/Core/Compiler.hs index a6814f9..2fc60ce 100644 --- a/src/Hakyll/Core/Compiler.hs +++ b/src/Hakyll/Core/Compiler.hs @@ -135,7 +135,9 @@ saveSnapshot snapshot item = do compilerUnsafeIO $ do Logger.debug logger $ "Storing snapshot: " ++ snapshot Internal.saveSnapshot store snapshot item - return item + + -- Signal that we saved the snapshot. + Compiler $ \_ -> return $ CompilerSnapshot snapshot (return item) -------------------------------------------------------------------------------- -- cgit v1.2.3