-
Notifications
You must be signed in to change notification settings - Fork 46
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
Simplify Monad #69
Comments
Another alternative is to prevent |
On a related note, what's the purpose of |
On the |
One other thing, I get the impression that there are some users of |
I've experimented with this a bit and I have to agree that unbundling the If we can drop |
I think dropping |
Original title: Use single-method class for Monad
Proposal: put
bind
andret
into their own classes, and letMonad
be a dummy class indexed by those two:That way,
bind
andret
don't simplify away when used with concrete monads. This also allowsret
to be shared withApplicative
, since of course I am extending my proposal to all multi-field classes.The text was updated successfully, but these errors were encountered: