X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcType.lhs;h=b1862b70a385a589cb7f59af67df6492a773b481;hb=b034e785cac038b9ffa72bf73ccc45a12c40c812;hp=63ea4b1ec253499da907b45be6a86ebf89989456;hpb=8d573292181707f0ba70865d125ad51b461dc8a3;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcType.lhs b/compiler/typecheck/TcType.lhs index 63ea4b1..b1862b7 100644 --- a/compiler/typecheck/TcType.lhs +++ b/compiler/typecheck/TcType.lhs @@ -87,6 +87,7 @@ module TcType ( isFFIDotnetTy, -- :: DynFlags -> Type -> Bool isFFIDotnetObjTy, -- :: Type -> Bool isFFITy, -- :: Type -> Bool + isFunPtrTy, -- :: Type -> Bool tcSplitIOType_maybe, -- :: Type -> Maybe Type toDNType, -- :: Type -> DNType @@ -146,7 +147,6 @@ import TyCon -- others: import DynFlags -import CoreSyn import Name import NameSet import VarEnv @@ -1213,6 +1213,9 @@ isFFIDotnetObjTy ty (_, t_ty) = tcSplitForAllTys ty check_tc tc = getName tc == objectTyConName +isFunPtrTy :: Type -> Bool +isFunPtrTy = checkRepTyConKey [funPtrTyConKey] + toDNType :: Type -> DNType toDNType ty | isStringTy ty = DNString