Open s5bug opened 3 years ago
Oh, this'll be interesting. I have a feeling we don't preserve position information by the time we get to the TC.
The same error does not occur without a type constructor, in fact
type foo <- [string, int]
is accepted as valid by amc. Should I open an issue for that too?
That bit is intentional - it's a type-level list.
In the code
I accidentally use
[string]
instead oflist string
. This leads to a confusing error:The error location is wrong, pointing to
type foo
instead of[string]
.The same error does not occur without a type constructor, in fact
type foo <- [string, int]
is accepted as valid by amc. Should I open an issue for that too?