summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Compiler.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2014-12-12 16:33:50 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2014-12-12 16:33:50 +0100
commit6f4ccbdc49c5662dcb9be59851310449ad4fd98d (patch)
tree39b298b7f3386a8eaf23b8577bd8352c8d07d409 /src/Hakyll/Core/Compiler.hs
parent4ccd994758b554d5ba65be46f330b24ff3e8c123 (diff)
downloadhakyll-6f4ccbdc49c5662dcb9be59851310449ad4fd98d.tar.gz
Fix dependency handling for snapshots
Diffstat (limited to 'src/Hakyll/Core/Compiler.hs')
-rw-r--r--src/Hakyll/Core/Compiler.hs4
1 files changed, 3 insertions, 1 deletions
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)
--------------------------------------------------------------------------------