Skip to content
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

Fix ghc and hlint warnings #568

Merged
merged 5 commits into from
Apr 16, 2024
Merged

Conversation

jhrcek
Copy link
Collaborator

@jhrcek jhrcek commented Apr 14, 2024

No description provided.

& L.documentChanges . _Just . traversed %~ swapDocumentChangeUri

swapKeys :: (Uri -> Uri) -> M.Map Uri b -> M.Map Uri b
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only non-mechanical change, I just noticed and couldn't resist the simplifcation 😃

cabal.project Outdated
@@ -10,12 +10,15 @@ test-show-details: direct

benchmarks: True

package *
ghc-options: -Wunused-packages
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. I think we normally put warning options in the cabal files, can we do that here too? Putting them all in cabal.project wouldn't be totally unreasonable, it's just inconsistent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just lazy 😄
But I agree and I moved it to cabal files + slightly consolidating using common warnings stanza and fixed few more warnings.
I hope there's nothing controversial, but will wait few days for your feedback (or let you merge if you think it's ok).

@@ -53,7 +57,6 @@ library
GADTs
NegativeLiterals
OverloadedStrings
StandaloneKindSignatures
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this, as it's contained in GHC2021

@michaelpj
Copy link
Collaborator

Great, thanks! Just needs the formatting fixed.

@jhrcek
Copy link
Collaborator Author

jhrcek commented Apr 16, 2024

Fixed. Also noticed that I don't have right to merge (and I don't necessarily want them) so leaving merging up to you.

@michaelpj michaelpj merged commit b3c18fe into haskell:master Apr 16, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants