X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcType.lhs;h=5f07585a081772db492a364e634244baec291f4f;hb=1aaf9dc3eee4942855cfa3416ae8a518cd65a95a;hp=63ea4b1ec253499da907b45be6a86ebf89989456;hpb=8d573292181707f0ba70865d125ad51b461dc8a3;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcType.lhs b/compiler/typecheck/TcType.lhs index 63ea4b1..5f07585 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 @@ -1213,6 +1214,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