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

Avoid warnings instead of hiding them #2873

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kleinreact
Copy link
Member

@kleinreact kleinreact commented Jan 13, 2025

Certain GHC warnings are currently disabled in in Clash.Prelude to hide the fact some imports and bindings are not used, and that some of the patterns in Clash.Sized.Vector are incomplete. As this is avoidable though, and having those flags enabled may also hide problems that are easy to catch otherwise. Therefore, this PR just avoids production of the respective warnings in the first place.

The only current exception is Clash.Tutorial, where the unused imports are used to have shorter Haddock references. We also can avoid that one by using fully qualified imports for the references instead. I'm in favor of introducing those changes as part of this PR too, but please let me know first, whether that's of common interest, as it takes a few minutes to apply all the changes along the file.

Requires (parts of)

Still TODO:

  • Write a changelog entry (see changelog/README.md)
  • Check copyright notices are up to date in edited files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant