X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FbasicTypes%2FName.lhs;h=25db76171c74ac1f28ba3b61d1e7addb3b68ef83;hp=ccce706467824ca24bdbb091c2db5cfa457ff2cb;hb=9da4639011348fb6c318e3cba4b08622f811d9c4;hpb=ddb04482cbdda4f6637feac517c8e06870e56763 diff --git a/compiler/basicTypes/Name.lhs b/compiler/basicTypes/Name.lhs index ccce706..25db761 100644 --- a/compiler/basicTypes/Name.lhs +++ b/compiler/basicTypes/Name.lhs @@ -24,7 +24,7 @@ module Name ( nameSrcLoc, nameParent, nameParent_maybe, isImplicitName, isSystemName, isInternalName, isExternalName, - isTyVarName, isWiredInName, isBuiltInSyntax, + isTyVarName, isTyConName, isWiredInName, isBuiltInSyntax, wiredInNameTyThing_maybe, nameIsLocalOrFrom, @@ -180,6 +180,9 @@ nameIsLocalOrFrom from name isTyVarName :: Name -> Bool isTyVarName name = isTvOcc (nameOccName name) +isTyConName :: Name -> Bool +isTyConName name = isTcOcc (nameOccName name) + isSystemName (Name {n_sort = System}) = True isSystemName other = False \end{code}