haskell / haskell/haskell-language-server
Code action to delete unused matches and local binds or add underscores to the names
- Dominant language
- Haskell
- Stars
- 3k
- Forks
- 455
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 11
Description
## Is your enhancement request related to a problem? Please describe.
In a code like this:
```haskell
main = do
foo <- getFoo
let bar = 42
doThings
```
Currently the code actions for `foo <- getFoo` line is to `Disable "unused-matches" warnings` and for `let bar = 42` is to `Disable "unused-local-binds" warnings`.
## Describe the solution you'd like
It would be better to suggest that the user adds an underscore the names `foo` and `bar` or deletes the line. Additionally another code action could be to delete all unused matches and binds as sometimes I delete a function call and that makes a few matches and binds unused.
## Describe alternatives you've considered
I usually delete the lines or add underscores by hand, but that is boring.
## Additional context
N/A.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.