Open MatthewDaggitt opened 1 year ago
Could you share some examples of these bugs, so that we could use those to see if we can put better guard rails on automatic generalisation?
There's the classic ones with a simple misspelling, e.g.:
fun : InputVectro -> Rat
fun x = x ! 0
but also cases where you rename some type but you forget to change all the occurrences of it.
The problem is that they lead to absolutely baffling error messages.
Haskell and—I think—Idris2 only generalise over lowercase names. Would that help a lot already?
I'm writing so so many bugs with it when I misspell something in the type-signature.