on master help sign in
Fixed type in tutorial.
commit0c41ea09e7558aa542615275a240748f25ec0baa authorJasper Van der Jeugt <jaspervdj@gmail.com> dateTue 19 Jan 2010, 21:17 (17 years ago) parent5876663
2 files changed+5−5
examples/hakyll/tutorial3.markdown+4−4 examples/hakyll/tutorial5.markdown+1−1
examples/hakyll/tutorial3.markdown+4−4
@@ -90,7 +90,7 @@ the end just `key: value` mappings. A CustomPage is created using the
9090~~~~~{.haskell}
9191createCustomPage :: FilePath
9292 -> [FilePath]
93− -> [(String, Either String (IO String)]
93+ -> [(String, Either String (Hakyll String)]
9494~~~~~
9595
9696The first argument is the `url` of the page to generate. For our index page,
@@ -103,11 +103,11 @@ This, once again, is about dependency handling. The idea is that you can choose
103103which type to use for the value:
104104
105105- `String`: Simply a `String`.
106−- `IO String`: Here, you can give an arbitrary `IO` action that will result
107− in a String. However - this action _will not be executed_ when the file
106+- `Hakyll String`: Here, you can give an arbitrary `Hakyll` action that will
107+ result in a String. However - this action _will not be executed_ when the file
108108 in `_site` is up-to-date.
109109
110−First, let us define this `IO String` for our index page. We want to render
110+First, let us define this `Hakyll String` for our index page. We want to render
111111every post using a simple template:
112112
113113~~~~~{.html}
examples/hakyll/tutorial5.markdown+1−1
@@ -159,7 +159,7 @@ post lists for every tag.
159159Hakyll provides a function called `readTagMap`. Let's inspect it's type.
160160
161161~~~~~{.haskell}
162−readTagMap [FilePath] -> IO Map String [FilePath]
162+readTagMap [FilePath] -> Hakyll Map String [FilePath]
163163~~~~~
164164
165165You give it a list of paths, and it creates a map that, for every tag, holds