summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-06-11 18:41:24 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-06-11 19:24:18 +0200
commitce03e5b3ce60e3fc98dfc8de296db33d503e2049 (patch)
tree9c31fa938c0717ae00c00aa80a42090cf0f706df /examples
parent0b4abde7cc4be3f4ccfe9598096f9cfdfb481382 (diff)
downloadhakyll-ce03e5b3ce60e3fc98dfc8de296db33d503e2049.tar.gz
Update brochure example code
Diffstat (limited to 'examples')
-rw-r--r--examples/brochure/hakyll.hs12
-rw-r--r--examples/hakyll/examples/brochure.zipbin3694 -> 9388 bytes
2 files changed, 5 insertions, 7 deletions
diff --git a/examples/brochure/hakyll.hs b/examples/brochure/hakyll.hs
index e298670..f33b37d 100644
--- a/examples/brochure/hakyll.hs
+++ b/examples/brochure/hakyll.hs
@@ -1,6 +1,5 @@
{-# LANGUAGE OverloadedStrings #-}
import Control.Arrow ((>>>))
-import Control.Monad (forM_)
import Hakyll
@@ -16,9 +15,8 @@ main = hakyll $ do
match "templates/*" $ compile templateCompiler
- forM_ ["about.rst", "index.markdown", "code.lhs"] $ \page ->
- match page $ do
- route $ setExtension "html"
- compile $ pageCompiler
- >>> applyTemplateCompiler "templates/default.html"
- >>> relativizeUrlsCompiler
+ match (list ["about.rst", "index.markdown", "code.lhs"]) $ do
+ route $ setExtension "html"
+ compile $ pageCompiler
+ >>> applyTemplateCompiler "templates/default.html"
+ >>> relativizeUrlsCompiler
diff --git a/examples/hakyll/examples/brochure.zip b/examples/hakyll/examples/brochure.zip
index e1f11f9..cfbe052 100644
--- a/examples/hakyll/examples/brochure.zip
+++ b/examples/hakyll/examples/brochure.zip
Binary files differ