Fix bogus check for strictness in newtypes
[ghc-hetmet.git] / compiler / typecheck / TcTyClsDecls.lhs
index 5f7a680..ee847f5 100644 (file)
@@ -1008,7 +1008,8 @@ checkNewDataCon con
                -- Return type is (T a b c)
        ; checkTc (null ex_tvs && null theta) (newtypeExError con)
                -- No existentials
-       ; checkTc (null (dataConStrictMarks con)) (newtypeStrictError con)
+       ; checkTc (not (any isMarkedStrict (dataConStrictMarks con))) 
+                 (newtypeStrictError con)
                -- No strictness
     }
   where