Skip to content

Code action to add existing, unused pragma #1390

Open
@alanz

Description

@alanz

I have a file with pragmas at the top

{-# 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:

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 a065cd6

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-pragmas-plugintype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions