diff --git a/ghc/compiler/typecheck/TcMonad.lhs b/ghc/compiler/typecheck/TcMonad.lhs index 3fe3ac5446be024219ca7210ed024564acfaa3a6..4c7ab555cd022562dbad8da32ce98c9498d29f7d 100644 --- a/ghc/compiler/typecheck/TcMonad.lhs +++ b/ghc/compiler/typecheck/TcMonad.lhs @@ -555,8 +555,8 @@ ctxt_to_use ctxt | opt_PprStyle_All = ctxt takeAtMost n (x:xs) = x:takeAtMost (n-1) xs arityErr kind name n m - = hsep [ ppr name, ptext SLIT("should have"), - n_arguments <> comma, text "but has been given", int m, char '.'] + = hsep [ text kind, quotes (ppr name), ptext SLIT("should have"), + n_arguments <> comma, text "but has been given", int m] where n_arguments | n == 0 = ptext SLIT("no arguments") | n == 1 = ptext SLIT("1 argument")