diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2013-05-05 04:50:55 -0700 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2013-05-05 04:50:55 -0700 |
commit | 696daa17b2195503124dd023917f8209e86c9a33 (patch) | |
tree | eff7d1c8eae63abf436dae291e22c5d4c63b5ee8 /src/Hakyll/Core | |
parent | 5a1692a0dffef1d5dfde64a32c6c968e12c9f71b (diff) | |
parent | 946723dc9dd2f4f16f89e0077193544cda6e5b6e (diff) | |
download | hakyll-696daa17b2195503124dd023917f8209e86c9a33.tar.gz |
Merge pull request #146 from sphynx/master
Logged dependency tracking.
Diffstat (limited to 'src/Hakyll/Core')
-rw-r--r-- | src/Hakyll/Core/Compiler/Internal.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Hakyll/Core/Compiler/Internal.hs b/src/Hakyll/Core/Compiler/Internal.hs index 5b3e466..259cd35 100644 --- a/src/Hakyll/Core/Compiler/Internal.hs +++ b/src/Hakyll/Core/Compiler/Internal.hs @@ -221,7 +221,11 @@ compilerUnsafeIO io = Compiler $ \_ -> do -------------------------------------------------------------------------------- compilerTellDependencies :: [Dependency] -> Compiler () -compilerTellDependencies ds = compilerTell mempty {compilerDependencies = ds} +compilerTellDependencies ds = do + logger <- compilerLogger <$> compilerAsk + forM_ ds $ \d -> compilerUnsafeIO $ Logger.debug logger $ + "Hakyll.Core.Compiler.Internal: Adding dependency: " ++ show d + compilerTell mempty {compilerDependencies = ds} {-# INLINE compilerTellDependencies #-} |