Open isovector opened 4 years ago
(it works just fine if AST
is an assocated data fam)
Hmm, isn't it basically what GHC says? AST
is non-injective, thus it can't infer l
from it's type - data family works simply because it is injective.
This example shows that we can't fill in type of action completely just using final annotation - we may consider switching to TypeApplications
instead.
I was reasonably sure we type apply everything anyway, in order to get around the ambiguous types?
oh right -- we just produce a final type sig. yeah, that makes sense
given
produces the error:
@TheMatten do you know offhand why this happens? I'm actually surprised by the behavior here.