-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Suggest adding -Wno-orphans when orphans are encountered #571
Comments
We definitely shouldn't suggest it unless the user has explicitly asked for it. Do you believe we do so? I think more generally an action available on any warning should be to disable the warning. I don't think people should use it too often, but it's a nice time saver. |
Do I believe we do what, sorry? This certainly does generalize to any warning, but nearly all warnings I squash properly except for this one which I almost always ignore. Perhaps it would be better just to leave it in my ghc-opts. Perhaps this warning ignoring suggestion could be general, but also parameterized by the user for which ones to trigger on |
|
👍 |
@expipiplus1 - I believe that unless you have explicitly asked for it, we won't warn on orphans, so you must have turned it on in your project. Probably through |
It's one of the warning I disable most frequently (in application code only of course!).
I wonder if it's even worth not suggesting this in library code, or if the inconsistency would just be confusing.
Just an idea, I'm sure it's not to everyone's taste!
The text was updated successfully, but these errors were encountered: