Skip to content

Commit d6e0954

Browse files
authored
fix typo (#429)
1 parent f3aa142 commit d6e0954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/chapter8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ In the last chapter, we formed an intuition for the `Maybe` applicative functor,
5050

5151
In general, a _monad_ for some type constructor `m` provides a way to use do notation with values of type `m a`. Note that in the array comprehension above, every line contains a computation of type `Array a` for some type `a`. In general, every line of a do notation block will contain a computation of type `m a` for some type `a` and our monad `m`. The monad `m` must be the same on every line (i.e. we fix the side-effect), but the types `a` can differ (i.e. individual computations can have different result types).
5252

53-
Here is another example of do notation, this type applied to the type constructor `Maybe`. Suppose we have some type `XML` representing XML nodes, and a function
53+
Here is another example of do notation, this time applied to the type constructor `Maybe`. Suppose we have some type `XML` representing XML nodes, and a function
5454

5555
```hs
5656
child :: XML -> String -> Maybe XML

0 commit comments

Comments
 (0)