summaryrefslogtreecommitdiff
path: root/src/Hakyll/Core/ResourceProvider.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Hakyll/Core/ResourceProvider.hs')
-rw-r--r--src/Hakyll/Core/ResourceProvider.hs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Hakyll/Core/ResourceProvider.hs b/src/Hakyll/Core/ResourceProvider.hs
index 7b4f94a..94dda5b 100644
--- a/src/Hakyll/Core/ResourceProvider.hs
+++ b/src/Hakyll/Core/ResourceProvider.hs
@@ -8,11 +8,15 @@ module Hakyll.Core.ResourceProvider
import Hakyll.Core.Identifier
+import qualified Data.ByteString.Lazy as LB
+
-- | A value responsible for retrieving and listing resources
--
data ResourceProvider = ResourceProvider
{ -- | A list of all resources this provider is able to provide
- resourceList :: [Identifier]
+ resourceList :: [Identifier]
, -- | Retrieve a certain resource as string
- resourceString :: Identifier -> IO String
+ resourceString :: Identifier -> IO String
+ , -- | Retrieve a certain resource as lazy bytestring
+ resourceLazyByteString :: Identifier -> IO LB.ByteString
}