Skip to content

Import extension plugin: don't suggest imports from deprecated modules #2415

Open
@michaelpj

Description

@michaelpj

Your environment

Which OS do you use:
NixOS
Which lsp-client do you use:
emacs
Describe your project (alternative: link to the project):
cabal.project

Steps to reproduce

With extra in your package db:

module Test where

foo :: [a] -> Int -> a
foo l i = l |? i

Import extension plugin will suggest importing |? from Extra, but Extra is deprecated (you're supposed to use Data.List.Extra).

Expected behaviour

Don't suggest imports from deprecated modules (just filter them out).

Actual behaviour

It suggests importing |? from Extra.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: imports 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