From ce03e5b3ce60e3fc98dfc8de296db33d503e2049 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Sat, 11 Jun 2011 18:41:24 +0200 Subject: Update brochure example code --- examples/brochure/hakyll.hs | 12 +++++------- examples/hakyll/examples/brochure.zip | Bin 3694 -> 9388 bytes 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'examples') 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 Binary files a/examples/hakyll/examples/brochure.zip and b/examples/hakyll/examples/brochure.zip differ -- cgit v1.2.3