-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't unify an interface with its instance #66
Comments
check noprelude option when starting up without loading a file
Poking around inside here, the problem is that it can't solve the unification problem EDIT: In fact it is happening, but isn't helping. I'll dig further. |
Ah, it's using the conversion check (which doesn't solve holes) for arguments to invertible holes, not unification, which would resolve the holes |
'convert' doesn't solve holes, so might reject things that are solvable. This can be an issue when resolving interfaces, because we were using convert for arguments of the invertible holes that arise when trying to resolve them. Fixes idris-lang#66.
Issue by berewt
Monday Apr 27, 2020 at 12:46 GMT
Originally opened as edwinb/Idris2-boot#330
The compiler seems to struggle to unify interfaces with dependent types with their implementation.
Steps to Reproduce
try to compile this module:
Fails with:
Expected Behavior
It should compile.
Observed Behavior
It fails with:
Workarounds
Specifying explicitly the value of
f
inpure12
solve the issue:And the problem disappears as well if we remove the
st
parameters.The text was updated successfully, but these errors were encountered: