-
Notifications
You must be signed in to change notification settings - Fork 11
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
add role annotations #76
Conversation
src/Graphula.hs
Outdated
@@ -191,12 +191,18 @@ data Args backend n m = Args | |||
, gen :: IORef QCGen | |||
} | |||
|
|||
type role Args representational representational representational |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a ton of overhead with no value. Can we -Wno-missing-role-annotations
instead? We've done that many times for new warnings, e.g. with missing-kind-signatures
, etc.
When it comes to our warnings choices and use of everything
, the intent is not "seek to satisfy everything
, only opting out what you must", it's more "everything
+ opt-out is better than opt-in" -- so there's no stigma to opting out of stuff. Would be good to document this somewhere I guess.
Unless there's some big benefit to this that I'm missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dunno, I didn't think it was much overhead and sometimes it's nice to make sure GHC agrees with what you thought a role was? I could go either way though, disabling the warning is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure GHC agrees with what you thought a role was
FWIW, I have exactly 0 idea what any role of anything is at any point. What you have here is greek to me 🤷
7a55e2f
to
4ffda57
Compare
package.yaml
Outdated
- condition: impl(ghc >= 9.8) | ||
ghc-options: | ||
- -Wno-missing-role-annotations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to be a stickler, but the list of conditionals are currently well-ordered new-to-old, so can you put this first instead of last? (Or reverse the list entirely, I don't care which way it goes.)
to satisfy
-Weverything
on GHC 9.8