Closed nwolverson closed 1 year ago
We assume that UnknownName source span is the name itself, but for typeclass instances the compiler span is wider. This leads to a weird suggestion.
UnknownName
Should contribute a tightened span for this case to the compiler
(I looked at this at some point and it wasn't trivial to get the right span, naturally)
This is now fixed with https://github.com/purescript/purescript/pull/4383
We assume that
UnknownName
source span is the name itself, but for typeclass instances the compiler span is wider. This leads to a weird suggestion.Should contribute a tightened span for this case to the compiler