Skip to content

Commit

Permalink
Typo and clarity in for-a-few-monads-more (learnyouahaskell#45)
Browse files Browse the repository at this point in the history
"If you don't understand"
  • Loading branch information
samtygier authored Feb 12, 2023
1 parent 114e104 commit 023c463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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 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 023c463

Please sign in to comment.