on master help sign in
Fixed type in tutorial.
0c41ea0Jasper Van der Jeugt
examples/hakyll/tutorial3.markdown+4−4
@@ -90,7 +90,7 @@ the end just `key: value` mappings. A CustomPage is created using the
90~~~~~{.haskell}
90~~~~~{.haskell}
91createCustomPage :: FilePath
91createCustomPage :: FilePath
92 -> [FilePath]
92 -> [FilePath]
93− -> [(String, Either String (IO String)]
93+ -> [(String, Either String (Hakyll String)]
94~~~~~
94~~~~~
95
95
96The first argument is the `url` of the page to generate. For our index page,
96The 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
103which type to use for the value:
103which type to use for the value:
104
104
105- `String`: Simply a `String`.
105- `String`: Simply a `String`.
106−- `IO String`: Here, you can give an arbitrary `IO` action that will result
106+- `Hakyll String`: Here, you can give an arbitrary `Hakyll` action that will
107− in a String. However - this action _will not be executed_ when the file
107+ result in a String. However - this action _will not be executed_ when the file
108 in `_site` is up-to-date.
108 in `_site` is up-to-date.
109
109
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
111every post using a simple template:
111every post using a simple template:
112
112
113~~~~~{.html}
113~~~~~{.html}
examples/hakyll/tutorial5.markdown+1−1
@@ -159,7 +159,7 @@ post lists for every tag.
159Hakyll provides a function called `readTagMap`. Let's inspect it's type.
159Hakyll provides a function called `readTagMap`. Let's inspect it's type.
160
160
161~~~~~{.haskell}
161~~~~~{.haskell}
162−readTagMap [FilePath] -> IO Map String [FilePath]
162+readTagMap [FilePath] -> Hakyll Map String [FilePath]
163~~~~~
163~~~~~
164
164
165You give it a list of paths, and it creates a map that, for every tag, holds
165You give it a list of paths, and it creates a map that, for every tag, holds