-
-
Notifications
You must be signed in to change notification settings - Fork 370
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 -Wunused-packages to common warnings #4053
Add -Wunused-packages to common warnings #4053
Conversation
@@ -42,18 +42,13 @@ common defaults | |||
common test-defaults | |||
ghc-options: -threaded -rtsopts -with-rtsopts=-N | |||
|
|||
common common-deps |
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.
Deleting this for now as it's contributing more to unused-packages warnings than it's saving duplication..
Will reintroduce this later where it makes sense.
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.
tbh it seems of questionable utility to me anyway
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.
mostly a workaround for not yet having haskell/cabal#9569
a52b7ba
to
012d32e
Compare
] | ||
-- not supported in ghc92 |
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.
CC @soulomoon I used this value-level CPP-less way to ensure this test only runs with GHC 9.4 and newer.
Did this to be able to get rid of "unused ghc dependency" warning.
While I was at it I fixed all the other warnings in this module.
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.
Thanx, it looks good
737728f
to
5224a19
Compare
@@ -283,13 +280,6 @@ executable ghcide | |||
if !flag(executable) | |||
buildable: False | |||
|
|||
if flag(ekg) |
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.
ekg dep is only direct dep of ghcide library, not of the executable.
c9f126d
to
47a9dcd
Compare
Ready for review. I'm quite happy about the resulting cleanup 🤗 |
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.
LGTM!
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.
Excellent
Looks like a genuine failure, @soulomoon introducing some new warnings for you ;) |
These look more like flaky tests to me. The unused-packages above the failure shouldn't fail the build per-se 🤔 |
261f00e
to
9359811
Compare
oops, sorry man, I might not have opportunities next time with this pr merged .😂 |
No problem, enjoy while you can. Just the usual birth pains of trying to enforce stricter checks 😄 |
No description provided.