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 -Wunused-imports #4037

Merged
merged 2 commits into from
Feb 3, 2024
Merged

Conversation

jhrcek
Copy link
Collaborator

@jhrcek jhrcek commented Feb 3, 2024

Since -Wall was turned on more universally during recent cabal file consolidations, the build logs are very noisy.
I'd like to fix most of the warnings, doing focused changes per PR to make it easy to review.

@@ -4,8 +4,7 @@
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ViewPatterns #-}

{-# OPTIONS_GHC -Wall -Wwarn -fno-warn-type-defaults #-}
{-# OPTIONS_GHC -Wno-name-shadowing #-}
{-# OPTIONS_GHC -Wwarn -fno-warn-type-defaults #-}
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 per-file warnings flags that are enabled for all plugins universally via import warnings in haskell-language-server.cabal

@jhrcek jhrcek marked this pull request as draft February 3, 2024 08:59
@jhrcek jhrcek force-pushed the jhrcek/fix-unused-imports branch 2 times, most recently from 07bf4bb to e4743f9 Compare February 3, 2024 15:37
@jhrcek jhrcek marked this pull request as ready for review February 3, 2024 17:07
Copy link
Collaborator

@michaelpj michaelpj left a comment

Choose a reason for hiding this comment

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

great stuff

@michaelpj
Copy link
Collaborator

FWIW I wonder if you want to still go per-component, then you can also start including the pedantic stanza so we ensure we stay in the good state!

@michaelpj michaelpj added the merge me Label to trigger pull request merge label Feb 3, 2024
@mergify mergify bot merged commit 902a62b into haskell:master Feb 3, 2024
41 checks passed
@jhrcek jhrcek deleted the jhrcek/fix-unused-imports branch February 12, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants