You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Writing the wrong constraint on a polymorphic function (e.g., imposing
A_Setter
when you really needA_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?The text was updated successfully, but these errors were encountered: