Skip to content

Commit

Permalink
Merge branch 'learnyouahaskell:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
xogcox authored Feb 25, 2023
2 parents 40282fa + 023c463 commit 031c0f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/for-a-few-monads-more.html
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ <h2>Reader? Ugh, not this joke again.</h2>
</p>

<p>
If don't get how <span class="fixed">&gt;&gt;=</span> works at this point, don't
If you don't understand how <span class="fixed">&gt;&gt;=</span> works at this point, don't
worry, because with examples we'll see how this is a really simple monad. Here's
a <span class="fixed">do</span> expression that utilizes this monad:
</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/starting-out.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h1 style="margin-left:-3px">Starting Out</h1>
What about doing <span class="fixed">5 + "llama"</span> or <span class="fixed">5 == True</span>? Well, if we try the first snippet, we get a big scary error message!
</p>
<pre name="code" class="haskell: ghci">
• No instance for (Num [Char]) arising from a use of ‘+’
• No instance for (Num String) arising from a use of ‘+’
• In the expression: 5 + "llama"
In an equation for ‘it’: it = 5 + "llama"
</pre>
Expand Down
2 changes: 1 addition & 1 deletion markdown/source_md/for-a-few-monads-more.md
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ The same thing happens here.
To get the result from a function, we have to apply it to something, which is why we do `(h w)` here to get the result from the function and then we apply `f` to that.
`f` returns a monadic value, which is a function in our case, so we apply it to `w` as well.

If don't get how `>>=` works at this point, don't worry, because with examples we'll see how this is a really simple monad.
If you don't understand how `>>=` works at this point, don't worry, because with examples we'll see how this is a really simple monad.
Here's a `do` expression that utilizes this monad:

```{.haskell:hs}
Expand Down

0 comments on commit 031c0f9

Please sign in to comment.