-
-
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
Lack of whileM, whileM_, untilM and untilM_ methods for Monad #1569
Comments
Forgive my ignorance ( I never used these before), I am just curious is there any usecases for this other than the |
@kailuowang these can be useful for IO-like types, or things that will be interpreted into IO … in doobie for instance I closed that PR because I lost interest in the tailRecM discussion, but it should be straightforward to implement now. |
@kailuowang I am porting ThoughtWorks Each to cats. At the moment, I will be able to transform |
Now that we have tailRecM on FlatMap these methods are easy (and stack
safe).
…On Wed, Mar 22, 2017 at 15:33 杨博 (Yang Bo) ***@***.***> wrote:
@kailuowang <https://github.com/kailuowang> I am porting ThoughtWorks Each
<https://github.com/ThoughtWorksInc/each> to cats.
At the moment, ThoughtWorks Each <https://github.com/ThoughtWorksInc/each>
requires whileM_ on scalaz.Monad in order to transform do and while loops.
I will be able to transform do and while loops on cats, if cats support
whileM_, too.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1569 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEJduBZwMQ8nCBaumb3BEiul24GoGNBks5rocvpgaJpZM4Mk-L_>
.
|
These methods present in
scalaz.Monad
. Should we add them in cats as well?The text was updated successfully, but these errors were encountered: