Suppress invalid Core Lint complaint about lack of constructors
[ghc-hetmet.git] / compiler / coreSyn / CoreLint.lhs
index 2b2a6e8..2d45eb3 100644 (file)
@@ -335,6 +335,7 @@ lintCoreExpr e@(Case scrut var alt_ty alts) =
          Just (tycon, _)
               | debugIsOn &&
                 isAlgTyCon tycon && 
+               not (isOpenTyCon tycon) &&
                 null (tyConDataCons tycon) -> 
                   pprTrace "Lint warning: case binder's type has no constructors" (ppr var <+> ppr (idType var))
                        -- This can legitimately happen for type families