summaryrefslogtreecommitdiff
path: root/src/Text/Hakyll
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-10-01 18:57:09 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-10-01 18:57:09 +0200
commit4be17172975a00f3324721fc779172f95dc8442d (patch)
treee05d5faa1b1de5d841b593d118cf8c3c6c667410 /src/Text/Hakyll
parent3f331d165dd189ca3a54e3306fe0476b93123f68 (diff)
downloadhakyll-4be17172975a00f3324721fc779172f95dc8442d.tar.gz
Document withTagMap function
Diffstat (limited to 'src/Text/Hakyll')
-rw-r--r--src/Text/Hakyll/Tags.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Hakyll/Tags.hs b/src/Text/Hakyll/Tags.hs
index 5f6f5d5..a4559ca 100644
--- a/src/Text/Hakyll/Tags.hs
+++ b/src/Text/Hakyll/Tags.hs
@@ -118,6 +118,8 @@ readCategoryMap :: String -- ^ Unique identifier for the map.
-> HakyllAction () TagMap
readCategoryMap = readMap $ maybeToList . M.lookup "category" . unContext
+-- | Perform a @Hakyll@ action on every item in the tag
+--
withTagMap :: HakyllAction () TagMap
-> (String -> [HakyllAction () Context] -> Hakyll ())
-> Hakyll ()