Skip to content

Commit

Permalink
minor improvements to tailRecM doc (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuowang authored and peterneyens committed Mar 29, 2017
1 parent 18c906b commit a57ae41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/main/tut/typeclasses/monad.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ universe.reify(
).tree
```

### tailRecM

In addition to requiring `flatMap` and `pure`, Cats has chosen to require
`tailRecM` which encodes stack safe monadic recursion, as described in
[Stack Safety for Free](http://functorial.com/stack-safety-for-free/index.pdf) by
Expand Down Expand Up @@ -102,6 +104,7 @@ implicit val optionMonad = new Monad[Option] {
}
```

More discussion about `tailRecM` can be found in the [FAQ](../faq.html#tailrecm).


### ifM
Expand Down

0 comments on commit a57ae41

Please sign in to comment.