haskell / haskell/haskell-language-server

Check types of missing definition in add import quick suggestions

Offen
#754 14 Kommentare 9 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
component: ghcide type: enhancement
Vorherrschende Sprache
Haskell
Sterne
3k
Forks
455
Ø Merge
2 T. 19 Std.
Gemergte PRs (30 T.)
11

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.