haskell / haskell/haskell-language-server

Code action to add existing, unused pragma

Open
#1,390 5 comments 0 reactions 0 assignees View on GitHub
component: hls-pragmas-plugin type: bug
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

I have a file with pragmas at the top

```haskell
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ExplicitNamespaces #-}
```
DeriveAnyClass is unused, and hlint reports this. But I get a code action to *add* it.

Screenshot 2021-02-17 at 15 08 16

### Your environment
Output of `haskell-language-server --probe-tools` or `haskell-language-server-wrapper --probe-tools`:

```sh
haskell-language-server version: 0.9.0.0 (GHC: 8.8.4) (PATH: /Users/alanzimm/.cabal/store/ghc-8.8.4/hskll-lngg-srvr-0.9.0.0-a8c1156a/bin/haskell-language-server)
Tool versions found on the $PATH
cabal: 3.2.0.0
stack: 2.5.1
ghc: 8.8.4
```
Which lsp-client do you use: emacs lsp-mode

HLS at a065cd66ee129b4f4c2484cfac23f43951587608

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.