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
When -XOverloadedLists is on, the invocation of makeEqF in the following code fails to typecheck:
data Expr a
= Lit Int
| Paren a
derive [makeEqF] [''Expr]
with the following error:
• Couldn't match expected type ‘GHC.Exts.Item (t0 Bool)’
with actual type ‘Bool’
The type variable ‘t0’ is ambiguous
• In the expression: (x_a6uN == y_a6uO)
In the first argument of ‘and’, namely ‘[(x_a6uN == y_a6uO)]’
In the expression: and [(x_a6uN == y_a6uO)]
The workaround is trivial (turn off OverloadedLists), but if this is a fixable issue, it would be nice to have. If not, I'd be happy to file a documentation bug adding this caveat to the makeEqF docstring.
The text was updated successfully, but these errors were encountered:
When
-XOverloadedLists
is on, the invocation ofmakeEqF
in the following code fails to typecheck:with the following error:
The workaround is trivial (turn off OverloadedLists), but if this is a fixable issue, it would be nice to have. If not, I'd be happy to file a documentation bug adding this caveat to the
makeEqF
docstring.The text was updated successfully, but these errors were encountered: