-
-
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
Use laws to explain why there is no e.g. Monad[Validated]
#4251
Comments
The Validated doc talks precisely about the example in the title, demonstrating that implementing |
Thanks for that pointer! I think it would be great if the documentation could specifically reference a law that relates However, at this moment I am struggling to find said law, or appreciate why it doesn't need to exist 🤔
|
I believe this is the law:
|
Thanks @johnynek! I'll try it and I'll submit an idea asap. |
I opened a PR for this. BTW @johnynek I showed that overriding def flatMapConsistentApply[A, B](fa: F[A], fab: F[A => B]): IsEq[F[B]] =
fab.ap(fa) <-> fab.flatMap(f => fa.map(f)) but since |
H/t @TonioGela, seems we could improve the
Parallel
docs https://typelevel.org/cats/typeclasses/parallel.htmlThe text was updated successfully, but these errors were encountered: