-
Notifications
You must be signed in to change notification settings - Fork 30
Added Discard instance #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
Conversation
I don't think errors should be discardable. |
liftEff and launchAff get used often enough, and those values are worth ignoring a lot of the time. For |
I think encouraging users to discard errors like this would be a bad thing. |
They would still be able to discard it using |
The point of |
I guess I just don't understand what this is accomplishing. Doesn't this only benefit people who are new to purescript and don't understand that every line in a do block returns a value? Everyone who's familiar with do notation knows that if they write |
No, I've had bugs recently which were caused by my forgetting to use a value returned in a |
Also, if you think |
Likewise, that's why it was proposed in the first place - GHC warns about it too for similar reasoning. 👎 from to this from me I'm afraid! |
Huh, that's interesting. I've never ran into an issue with that, but you guys have way more experience coding in purescript than me. Ok I guess if it's a 👎 I'll go ahead and close this PR |
There's an example of the kind of place it can occur in purescript/purescript#1803 (comment) - due to a use of |
No description provided.