Skip to content
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

Instance type match check is too strict #73

Open
robertkleffner opened this issue Dec 11, 2022 · 0 comments
Open

Instance type match check is too strict #73

robertkleffner opened this issue Dec 11, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@robertkleffner
Copy link
Collaborator

Problem is found in the typeable test file.

Core issue is that a perfectly valid instance definition can infer a type that is actually more general than the overload. In this case we can let it pass, but we need to be careful that the instance actually consumes and produces the expected number of elements from the stack still. If it does not consume and produce enough, any function which uses that instance will be unsoundly typed.

@robertkleffner robertkleffner added the bug Something isn't working label Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant