-
Notifications
You must be signed in to change notification settings - Fork 21
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
Presumptuous monadism #24
Comments
Yes, latterLetter1d = flip . (further .) . flip elemIndex <*> latter
Yes: latterLetter1d = flip (flip (liftM2 further) latter . elemIndex) |
Nowadays I think you don't need to import Control.Monad to get these instances, so I don't think it's bad to use the monad interface here. |
No, you still do need to import Control.Monad, even in GHC 8.8.1. |
Hello? |
oh, I misunderstood this at the time, sorry (just happened to revisit it now). The issue is not the instance itself, but the function Nevertheless, I don't personally feel excited to work on this. It seems like using standard base imports is often going to result in better code, so at most I'd want this to be an option, |
For other things like |
I passed this input to pointfree.io:
This was the output:
Is there no pointfree way to express this without importing Control.Monad? Or, if monads are really the cleanest way to do this, is there a formulation of it without so many dots and flips (#23)?
The text was updated successfully, but these errors were encountered: