Skip to content

Commit 1bda6b2

Browse files
author
Gregory Cox
committed
Update markdown to match learnyouahaskell#44 and generate markdown HTML for learnyouahaskell#44 and learnyouahaskell#45
1 parent 031c0f9 commit 1bda6b2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

markdown/generated_html/for-a-few-monads-more.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,9 +680,10 @@ <h2 id="reader">Reader? Ugh, not this joke again.</h2>
680680
then we apply <code>f</code> to that. <code>f</code> returns a monadic
681681
value, which is a function in our case, so we apply it to <code>w</code>
682682
as well.</p>
683-
<p>If don’t get how <code>&gt;&gt;=</code> works at this point, don’t
684-
worry, because with examples we’ll see how this is a really simple
685-
monad. Here’s a <code>do</code> expression that utilizes this monad:</p>
683+
<p>If you don’t understand how <code>&gt;&gt;=</code> works at this
684+
point, don’t worry, because with examples we’ll see how this is a really
685+
simple monad. Here’s a <code>do</code> expression that utilizes this
686+
monad:</p>
686687
<pre class="haskell:hs"><code>import Control.Monad.Instances
687688

688689
addStuff :: Int -&gt; Int

markdown/generated_html/starting-out.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h2 id="ready-set-go">Ready, set, go!</h2>
9696
True</code></pre>
9797
<p>What about doing <code>5 + "llama"</code> or <code>5 == True</code>?
9898
Well, if we try the first snippet, we get a big scary error message!</p>
99-
<pre class="haskell: ghci"><code>• No instance for (Num [Char]) arising from a use of ‘+’
99+
<pre class="haskell: ghci"><code>• No instance for (Num String) arising from a use of ‘+’
100100
• In the expression: 5 + &quot;llama&quot;
101101
In an equation for ‘it’: it = 5 + &quot;llama&quot;</code></pre>
102102
<p>Yikes! What GHCI is telling us here is that <code>"llama"</code> is

markdown/source_md/starting-out.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ What about doing `5 + "llama"` or `5 == True`?
8585
Well, if we try the first snippet, we get a big scary error message!
8686

8787
```{.haskell: .ghci}
88-
• No instance for (Num [Char]) arising from a use of ‘+’
88+
• No instance for (Num String) arising from a use of ‘+’
8989
• In the expression: 5 + "llama"
9090
In an equation for ‘it’: it = 5 + "llama"
9191
```

0 commit comments

Comments
 (0)