summaryrefslogtreecommitdiff
path: root/src/Text/Hakyll
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-12 16:46:27 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-03-12 16:46:27 +0100
commit9acf269cea78f953d52d92e648177605c228b35f (patch)
tree596b83962c0598b9760e5f17ccf9ea6c7dafee30 /src/Text/Hakyll
parente7918c39f8378cc5d5df390a0f6a9f60dd3ba1a3 (diff)
downloadhakyll-9acf269cea78f953d52d92e648177605c228b35f.tar.gz
Changes String to FilePath on appropriate places.
Diffstat (limited to 'src/Text/Hakyll')
-rw-r--r--src/Text/Hakyll/CreateContext.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Hakyll/CreateContext.hs b/src/Text/Hakyll/CreateContext.hs
index 24a97dd..a23f213 100644
--- a/src/Text/Hakyll/CreateContext.hs
+++ b/src/Text/Hakyll/CreateContext.hs
@@ -36,7 +36,7 @@ createPage path = HakyllAction
-- @HakyllAction () String@. The latter is preferred for more complex data,
-- since it allows dependency checking. A @String@ is obviously more simple
-- to use in some cases.
-createCustomPage :: String
+createCustomPage :: FilePath
-> [(String, Either String (HakyllAction () String))]
-> HakyllAction () Context
createCustomPage url association = HakyllAction
@@ -58,7 +58,7 @@ createCustomPage url association = HakyllAction
-- item in the list is created by applying the given template to every
-- renderable. You can also specify additional context to be included in the
-- @CustomPage@.
-createListing :: String -- ^ Destination of the page.
+createListing :: FilePath -- ^ Destination of the page.
-> [FilePath] -- ^ Templates to render items with.
-> [HakyllAction () Context] -- ^ Renderables in the list.
-> [(String, Either String (HakyllAction () String))]