Note [Zonking the LHS of a RULE]
See also GHC.HsToCore.Binds Note [Free tyvars on rule LHS] We need to gather the type variables mentioned on the LHS so we can quantify over them. Example: data T a = C foo :: T a -> Int foo C = 1 {-# RULES "myrule" foo C = 1 #
References 1
- Free tyvars on rule LHS GHC.Tc.Zonk.Type
Referenced by 2
- Un-unified unification variables GHC.Tc.Zonk.Env
- GHC.Tc.Zonk.Env call site