summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Provider
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2013-02-06 22:40:18 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2013-02-06 22:40:18 +0100
commitea953d3415232ba53aadc061e9005dbe74e3b012 (patch)
tree10ea81bb0ddefd356d3ff84b25a5d49c8bcc5bd0 /src/Hakyll/Core/Provider
parentd34d56b10e14e41ad303e6c5d3daef6970af65c2 (diff)
downloadhakyll-ea953d3415232ba53aadc061e9005dbe74e3b012.tar.gz
Ignore files sooner, small speedup
Diffstat (limited to 'src/Hakyll/Core/Provider')
-rw-r--r--src/Hakyll/Core/Provider/Internal.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Hakyll/Core/Provider/Internal.hs b/src/Hakyll/Core/Provider/Internal.hs
index 1360ef5..301c25c 100644
--- a/src/Hakyll/Core/Provider/Internal.hs
+++ b/src/Hakyll/Core/Provider/Internal.hs
@@ -51,8 +51,7 @@ newProvider :: Store -- ^ Store to use
-> FilePath -- ^ Search directory
-> IO Provider -- ^ Resulting provider
newProvider store ignore directory = do
- list <- map fromFilePath . filter (not . ignore) <$>
- getRecursiveContents directory
+ list <- map fromFilePath <$> getRecursiveContents ignore directory
cache <- newIORef M.empty
return $ Provider directory (S.fromList list) cache store