error-message-catalog icon indicating copy to clipboard operation
error-message-catalog copied to clipboard

Typos, "did you mean" errors - filter the candidates using type information

Open Janiczek opened this issue 7 years ago • 0 comments

So, we have this: naming

It could be nice to only show candidates from the list whose types agree with the usage in source code.

For example, the unknown List.nap is being used as

({a | name : String} -> Html msg) -> List {a | name : String} -> List (Html msg)

which only agrees with List.map ((a -> b) -> List a -> List b).

(Variation: not only filter but also add candidates with compatible types from all currently visible definitions.)

Janiczek avatar Jun 06 '18 11:06 Janiczek