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
type SimplifyUnary (n::Nat) = IsUnary (ToUnary n) ~ (()::Constraint)
where IsUnary is a type class.
Currently the rule seems to have no effect. If it had, would it work at all? I mean, GHC might be missing the IsUnary class method dictionary.
The text was updated successfully, but these errors were encountered:
It has no effect in code like IsUnary (ToUnary 4) => Int because typelevel-rewrite-rules only rewrites the types which occur inside equality constraints: in (A a ~ B a, C a) => D a, it only touches A a and B a, not C a.
I would like to write a rule like:
where
IsUnary
is a type class.Currently the rule seems to have no effect. If it had, would it work at all? I mean, GHC might be missing the
IsUnary
class method dictionary.The text was updated successfully, but these errors were encountered: