X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcClassDcl.lhs;h=9fb530de5959f5fa6279759f1d9ea94b058fa826;hb=202ac08f3e2afde0620e889cc81a95b2fd0ad9e1;hp=25795cef9a6fe3243600f964da8d92a1ee37dea3;hpb=15cb792d18b1094e98c035dca6ecec5dad516056;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcClassDcl.lhs b/compiler/typecheck/TcClassDcl.lhs index 25795ce..9fb530d 100644 --- a/compiler/typecheck/TcClassDcl.lhs +++ b/compiler/typecheck/TcClassDcl.lhs @@ -739,8 +739,12 @@ tcAddDeclCtxt decl thing_inside thing = case decl of ClassDecl {} -> "class" TySynonym {} -> "type synonym" - TyData {tcdND = NewType} -> "newtype" - TyData {tcdND = DataType} -> "data type" + TyFunction {} -> "type function signature" + TyData {tcdND = NewType} -> "newtype" ++ maybeSig + TyData {tcdND = DataType} -> "data type" ++ maybeSig + + maybeSig | isKindSigDecl decl = " signature" + | otherwise = "" ctxt = hsep [ptext SLIT("In the"), text thing, ptext SLIT("declaration for"), quotes (ppr (tcdName decl))]