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

Further simplify instances to avoid overkill *1 classes #217

Open
Ericson2314 opened this issue Jun 26, 2022 · 0 comments
Open

Further simplify instances to avoid overkill *1 classes #217

Ericson2314 opened this issue Jun 26, 2022 · 0 comments

Comments

@Ericson2314
Copy link

Ericson2314 commented Jun 26, 2022

instance (Eq1 f, Eq a) => Eq (Free f a) where

For example I think could be

deriving instance (Eq a, Eq (f (Free f a))) => Eq (Free f a)

And even prior to quantified constraints, the solver can coinductively solve such constraints.

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

No branches or pull requests

1 participant