-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Free.foldMap stack-safe. #1075
Conversation
To fix the tutorial, it will require at least Quite ironically, the tutorial emphasizes stack-safety,
but this has been wrong until this PR. |
This looks great! Do you mind adding the necessary |
I can give it a go. |
Turns out also |
I'm re-running Travis -- I think after your last PR this should be green now. |
Looks like maybe there are conflicts -- but once this is green and ready-to-merge 👍 from me. |
Current coverage is 88.34%
@@ master #1075 diff @@
==========================================
Files 223 221 -2
Lines 2808 2804 -4
Methods 2751 2749 -2
Messages 0 0
Branches 52 50 -2
==========================================
- Hits 2481 2477 -4
Misses 327 327
Partials 0 0
|
👍 |
Needs rebasing ... |
Fixes typelevel#721. The fix is possible by strengthening constraints on the target monad from Monad to MonadRec.
5dc6518
to
07de292
Compare
rebased |
Thanks @TomasMikula! |
cool I had totallly missed this one :D |
Fixes #721.
The fix is now possible by strengthening constraints on the target monad from
Monad
toMonadRec
.This is not binary compatible, and will not be source compatible for users that used this with a non-
MonadRec
monad.