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

Code action: remove redundant constraints #1108

Closed
hsenag opened this issue Sep 13, 2019 · 0 comments · Fixed by haskell/ghcide#692
Closed

Code action: remove redundant constraints #1108

hsenag opened this issue Sep 13, 2019 · 0 comments · Fixed by haskell/ghcide#692

Comments

@hsenag
Copy link
Member

hsenag commented Sep 13, 2019

Should be a good first issue if identifying the right bit of code to remove is simple enough (as weith haskell/ghcide#54).

If the -Wredundant-constraints warning is on, GHC emits warnings like:

C:\msys64\home\ganesh\temp\x\Foo.hs:3:1: warning:
    • Redundant constraint: Ord a
    • In the type signature for:
           foo :: forall a. Ord a => a -> Int

Unfortunately the source range covers all of the type signature for foo, not just the redundant constraint itself.

@pepeiborra pepeiborra transferred this issue from haskell/ghcide Jan 1, 2021
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 a pull request may close this issue.

1 participant