on master help sign in
Merge pull request #83 from J-Hannes/patch-1

Fix some typos

commitc12c560aa7a80dffad1b516b3d3780e6a3d57278 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateTue 21 Aug 2012, 04:20 (14 years ago) parent1a5f7a1ad9ac52
1 file changed+3−3
web/tutorials/03-arrows.markdown+3−3
web/tutorials/03-arrows.markdown+3−3
@@ -40,7 +40,7 @@ For the next processing steps we now need a compiler that takes an
4040`Either (Page a) (Page a)` instead of the usual `Page a` as an
4141input. But the former can be built up from the latter using some
4242standard combinators from the `Control.Arrow` library. The simplest
43−one is `|||`, which takes two comilers (arrows) with the same output
43+one is `|||`, which takes two compilers (arrows) with the same output
4444type and returns a new compiler that takes an `Either` of the input
4545types of the Compilers as an input. Maybe we just want to render our
4646unpublished posts with a big warning that they are provisional, so we
@@ -62,7 +62,7 @@ With the conditional rendering in place, the next step is to hide
6262the unpublished posts from the homepage and the list of posts.
6363Both lists are generated from the results of a requireAllA call.
6464The last argument of requireAllA is a Compiler, and requireAllA
65−passes a pair consiting of the currently rendered page and a list
65+passes a pair consisting of the currently rendered page and a list
6666of all the required pages. All we have to do to suppress the pages
6767is to write a Compiler that takes such a pair as input, leaves the
6868first element of the pair unchanged and filters out all the unpublished
@@ -131,7 +131,7 @@ type pair:
131131 match "posts/*" $ do
132132 route $ setExtension ".html"
133133 compile $ pageCompiler
134− >>> isPublishedPage
134+ >>> isPagePublished
135135 >>> (id +++ (applyTemplateCompiler "templates/post.html"
136136 >>> applyTemplateCompiler "templates/default.html"
137137 >>> relativizeUrlsCompiler))