haskell / haskell/haskell-language-server

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

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

Description

### 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`.

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.