diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-05-06 10:28:35 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-05-06 10:28:35 +0200 |
commit | 97d81872c529893db22eb5ea68eb76c5df278e2d (patch) | |
tree | a4dcdfa61c10b99806ce58674a17aaa5ee681fe6 /src/Hakyll/Core/Resource | |
parent | 64caea9b1f8e42b5e16fe70204ebac92cb451ae4 (diff) | |
download | hakyll-97d81872c529893db22eb5ea68eb76c5df278e2d.tar.gz |
Fix encoding errors with unixFilter
Diffstat (limited to 'src/Hakyll/Core/Resource')
-rw-r--r-- | src/Hakyll/Core/Resource/Provider.hs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Hakyll/Core/Resource/Provider.hs b/src/Hakyll/Core/Resource/Provider.hs index d7f08e0..944f9c7 100644 --- a/src/Hakyll/Core/Resource/Provider.hs +++ b/src/Hakyll/Core/Resource/Provider.hs @@ -36,13 +36,13 @@ import Hakyll.Core.Resource -- data ResourceProvider = ResourceProvider { -- | A list of all resources this provider is able to provide - resourceList :: [Resource] + resourceList :: [Resource] , -- | Retrieve a certain resource as string - resourceString :: Resource -> IO String + resourceString :: Resource -> IO String , -- | Retrieve a certain resource as lazy bytestring - resourceLazyByteString :: Resource -> IO LB.ByteString + resourceLBS :: Resource -> IO LB.ByteString , -- | Cache keeping track of modified items - resourceModifiedCache :: MVar (Map Resource Bool) + resourceModifiedCache :: MVar (Map Resource Bool) } -- | Create a resource provider @@ -61,7 +61,7 @@ resourceExists provider = flip elem $ resourceList provider -- | Retrieve a digest for a given resource -- resourceDigest :: ResourceProvider -> Resource -> IO [Word8] -resourceDigest provider = digest MD5 <=< resourceLazyByteString provider +resourceDigest provider = digest MD5 <=< resourceLBS provider -- | Check if a resource was modified -- |