Closed evertedsphere closed 4 years ago
:scream:
I wonder whether we should add an optional warning about implicitly polymorphic functions where the polymorphism only shows up in one of the arguments. There are legitimate use cases (existential types) but this could help catch these kind of typos.
I'll try to implement that & see how many warnings it would trigger on the idris2 codebase.
Hm, that's an interesting idea. If I got a warning like that I think I'd be happy to make the binding explicit anyway.
@gallais Slight typo's like this has caught me out a few times. Having something to try and catch these sorts of errors would be good, especially if it was optional as you suggested.
The
var
here should bevars
, I believe:https://github.com/edwinb/Idris2/blob/master/src/Compiler/LambdaLift.idr#L29