Skip to content

Tactics plugin doesn't correctly get the theta type when defining class methods #1346

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 Feb 10, 2021 · 1 comment · Fixed by #1517
Closed

Tactics plugin doesn't correctly get the theta type when defining class methods #1346

isovector opened this issue Feb 10, 2021 · 1 comment · Fixed by #1517
Labels
component: wingman type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@isovector
Copy link
Collaborator

When digging into #561, I noticed that in the program

data Fix f a = Fix (f (Fix f a))

instance Functor f => Functor (Fix f) where
  fmap f (Fix x) = _

the Functor f given isn't available inside of the hole. I guess the thetatype stuff only works for top-level defs.

@isovector
Copy link
Collaborator Author

This particular bug is fixed by #1517, but the example still doesn't work due to #1518. What a can of worms!

@mergify mergify bot closed this as completed in #1517 Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: wingman type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants