-
Notifications
You must be signed in to change notification settings - Fork 44
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
Alternative MaybeT instance might not be distributive #116
Comments
Thanks for the report. This does indeed seem problematic. Perhaps we should just remove the Alternative instance in the next breaking release. |
After this library is updated to 0.14, can I make a PR for this? Or do we not breaking release for now? |
We're doing breaking changes now, not later.
|
Actually, I think we should leave this as-is. Many Alternative instances in the wild obey a "left catch" law:
instead of the documented distributivity law, and MaybeT is one example. Other examples include parsers and Aff. See also purescript/purescript-control#63 - I think we should wait until we've made progress there before removing any instances here. |
I think this is just one example of the issue described in purescript/purescript-control#63, so I think we should close this for now and continue tracking the issue there. |
Imagine this scenario:
The text was updated successfully, but these errors were encountered: