diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-04-12 10:09:03 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-04-12 10:09:03 +0200 |
commit | b37da38d3911bbc8381a39fe526e69599d9ddcf1 (patch) | |
tree | d27f2dbf8860ddbdf0d791aff77dd8504ba6da92 /src/Hakyll/Core/Resource/Provider/File.hs | |
parent | 0a3cd37cc9635d2d1e6696bff91dcd37e81bd202 (diff) | |
download | hakyll-b37da38d3911bbc8381a39fe526e69599d9ddcf1.tar.gz |
Major refactoring of identifiers/resources/groups
Diffstat (limited to 'src/Hakyll/Core/Resource/Provider/File.hs')
-rw-r--r-- | src/Hakyll/Core/Resource/Provider/File.hs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Hakyll/Core/Resource/Provider/File.hs b/src/Hakyll/Core/Resource/Provider/File.hs index 953d61c..5383b51 100644 --- a/src/Hakyll/Core/Resource/Provider/File.hs +++ b/src/Hakyll/Core/Resource/Provider/File.hs @@ -12,7 +12,6 @@ import qualified Data.ByteString.Lazy as LB import Hakyll.Core.Resource import Hakyll.Core.Resource.Provider -import Hakyll.Core.Identifier import Hakyll.Core.Util.File import Hakyll.Core.Configuration @@ -20,8 +19,8 @@ import Hakyll.Core.Configuration -- fileResourceProvider :: HakyllConfiguration -> IO ResourceProvider fileResourceProvider configuration = do - -- Retrieve a list of identifiers - list <- map parseIdentifier . filter (not . ignoreFile configuration) <$> + -- Retrieve a list of paths + list <- filter (not . ignoreFile configuration) <$> getRecursiveContents False "." -- MVar for the cache @@ -30,7 +29,7 @@ fileResourceProvider configuration = do -- Construct a resource provider return ResourceProvider { resourceList = map Resource list - , resourceString = readFile . toFilePath . unResource - , resourceLazyByteString = LB.readFile . toFilePath . unResource + , resourceString = readFile . unResource + , resourceLazyByteString = LB.readFile . unResource , resourceModifiedCache = mvar } |