Skip to content

Commit

Permalink
Merge pull request #1056 from Madder/patch-1
Browse files Browse the repository at this point in the history
Left-adjoint of forgetful functor
  • Loading branch information
non committed Jun 2, 2016
2 parents cfe283d + b1b5985 commit 7f112dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/main/tut/freemonad.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,14 +420,14 @@ _very simple_ Monad from any _functor_**.
The above forgetful functor takes a `Monad` and:

- forgets its *monadic* part (e.g. the `flatMap` function)
- forgets its *applicative* part (e.g. the `pure` function)
- forgets its *pointed* part (e.g. the `pure` function)
- finally keeps the *functor* part (e.g. the `map` function)

By reversing all arrows to build the left-adjoint, we deduce that the
forgetful functor is basically a construction that:
free monad is basically a construction that:

- takes a *functor*
- adds the *applicative* part (e.g. `pure`)
- adds the *pointed* part (e.g. `pure`)
- adds the *monadic* behavior (e.g. `flatMap`)

In terms of implementation, to build a *monad* from a *functor* we use
Expand Down

0 comments on commit 7f112dd

Please sign in to comment.