[project @ 2004-07-30 08:39:51 by simonpj]
authorsimonpj <unknown>
Fri, 30 Jul 2004 08:39:51 +0000 (08:39 +0000)
committersimonpj <unknown>
Fri, 30 Jul 2004 08:39:51 +0000 (08:39 +0000)
Fix foreign-type predicate

ghc/compiler/types/TyCon.lhs

index 072e9c3..5115beb 100644 (file)
@@ -407,9 +407,8 @@ isHiBootTyCon other                           = False
 
 isForeignTyCon :: TyCon -> Bool
 -- isForeignTyCon identifies foreign-imported type constructors
--- For the moment, they are primitive but lifted, but that may change
-isForeignTyCon (PrimTyCon {isUnLifted = is_unlifted}) = not is_unlifted
-isForeignTyCon other                                 = False
+isForeignTyCon (PrimTyCon {tyConExtName = Just _}) = True
+isForeignTyCon other                              = False
 \end{code}
 
 \begin{code}