summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/Provider
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2013-04-03 12:02:06 +0200
committerJasper Van der Jeugt <m@jaspervdj.be>2013-04-03 12:02:06 +0200
commit5e4adaecb232231d87a6bb4dd0b041daf86a4cdb (patch)
treedab51fae19d9c062fdc9697c1ac410a93e8f4517 /src/Hakyll/Core/Provider
parent792fcdf4c6c5a86a6dcaf969f807ae86a58090b1 (diff)
downloadhakyll-5e4adaecb232231d87a6bb4dd0b041daf86a4cdb.tar.gz
Account for absolute paths in `shouldIgnoreFile`
Diffstat (limited to 'src/Hakyll/Core/Provider')
-rw-r--r--src/Hakyll/Core/Provider/Internal.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Hakyll/Core/Provider/Internal.hs b/src/Hakyll/Core/Provider/Internal.hs
index 5c3d07e..583c665 100644
--- a/src/Hakyll/Core/Provider/Internal.hs
+++ b/src/Hakyll/Core/Provider/Internal.hs
@@ -103,10 +103,10 @@ data Provider = Provider
--------------------------------------------------------------------------------
-- | Create a resource provider
-newProvider :: Store -- ^ Store to use
- -> (FilePath -> Bool) -- ^ Should we ignore this file?
- -> FilePath -- ^ Search directory
- -> IO Provider -- ^ Resulting provider
+newProvider :: Store -- ^ Store to use
+ -> (FilePath -> IO Bool) -- ^ Should we ignore this file?
+ -> FilePath -- ^ Search directory
+ -> IO Provider -- ^ Resulting provider
newProvider store ignore directory = do
list <- map fromFilePath <$> getRecursiveContents ignore directory
let universe = S.fromList list