Skip to content

Wingman doesn't use synthesized evidence #1551

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

Closed
isovector opened this issue Mar 10, 2021 · 0 comments · Fixed by #1549
Closed

Wingman doesn't use synthesized evidence #1551

isovector opened this issue Mar 10, 2021 · 0 comments · Fixed by #1549
Labels

Comments

@isovector
Copy link
Collaborator

The destruct tactic generates a pattern match, and pattern matching on GADT constructors can introduce evidence into scope. Right now, Wingman just ignores this evidence. #1549 lets us use this argument if the user wrote it, but right now the following will fail:

data X f = Monad f => X

fun1 :: X f -> a -> f a
fun1 = _

while

fun1 :: X f -> a -> f a
fun1 X = _

works just fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant