summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Run.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-04-06 09:30:24 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-04-06 09:30:24 +0200
commit3d2b2506d040546d74e83f6d9b8b4e0c45026f09 (patch)
tree60e5b351ac6e3b08fadce7b699aa734b1c6f1cbc /src/Hakyll/Core/Run.hs
parent015663657ceca7b168bf7d91fbc2fccc41c40904 (diff)
downloadhakyll-3d2b2506d040546d74e83f6d9b8b4e0c45026f09.tar.gz
Move modified cache to resource provider
Currently, it's kept twice: in Run and in the Provider. On the long term, it should be migrated entirely to the Provider, this can be done when the new dependency manager is finished.
Diffstat (limited to 'src/Hakyll/Core/Run.hs')
-rw-r--r--src/Hakyll/Core/Run.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Hakyll/Core/Run.hs b/src/Hakyll/Core/Run.hs
index 8e1ba6d..54bb104 100644
--- a/src/Hakyll/Core/Run.hs
+++ b/src/Hakyll/Core/Run.hs
@@ -100,9 +100,7 @@ modified :: ResourceProvider -- ^ Resource provider
-> [Identifier] -- ^ Identifiers to check
-> IO (Set Identifier) -- ^ Modified resources
modified provider store ids = fmap S.fromList $ flip filterM ids $ \id' ->
- if resourceExists provider id'
- then resourceModified provider (Resource id') store
- else return False
+ resourceModified provider (Resource id') store
-- | Add a number of compilers and continue using these compilers
--