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

Improve type errors #476

Open
treeowl opened this issue Dec 28, 2022 · 0 comments
Open

Improve type errors #476

treeowl opened this issue Dec 28, 2022 · 0 comments

Comments

@treeowl
Copy link
Contributor

treeowl commented Dec 28, 2022

Writing the wrong constraint on a polymorphic function (e.g., imposing A_Setter when you really need A_Traversal) tends to give confusing overlapping instance errors. I believe this is because of the way GHC handles functional dependencies. Can those errors be improved by using type family-based constraints instead of fundeps?

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