haskell / haskell/haskell-language-server

Check types of missing definition in add import quick suggestions

Open
#754 14 comments 9 reactions 0 assignees View on GitHub
component: ghcide type: enhancement
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

### Current behavior:

Even though the type of `toLower` is known from the context (`Char -> Char`), "quick fix" purposes to import functions that, despite having the same name, are known not to be correct type-wise (`Data.Text.Lazy (toLower)` for example).

![Screenshot 2020-07-07 at 13 41 51](https://user-images.githubusercontent.com/6209627/86769290-9dc76680-c057-11ea-8c64-bd8b6c6a7f69.png)
![Screenshot 2020-07-07 at 13 42 02](https://user-images.githubusercontent.com/6209627/86769306-a455de00-c057-11ea-95a8-20c7036fcb9a.png)

### Proposed behavior:

When the type of the undefined function is fully known, filter quick fixes by type.

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.