haskell / haskell/haskell-language-server

Check types of missing definition in add import quick suggestions

Abierto
#754 14 comentarios 9 reacciones 0 asignados Ver en GitHub
component: ghcide type: enhancement
Lenguaje dominante
Haskell
Estrellas
3k
Forks
455
Merge medio
2 d 19 h
PR fusionados (30 d)
11

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.