From: simonpj Date: Fri, 2 Nov 2001 09:50:32 +0000 (+0000) Subject: [project @ 2001-11-02 09:50:32 by simonpj] X-Git-Tag: Approximately_9120_patches~652 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=c5d261df4d37f2fc83bc59ecca9f741a9c8da0ff;p=ghc-hetmet.git [project @ 2001-11-02 09:50:32 by simonpj] Add missing cases to pp_origin; MERGE TO STABLE --- diff --git a/ghc/compiler/typecheck/TcMonad.lhs b/ghc/compiler/typecheck/TcMonad.lhs index 3893559..28743e2 100644 --- a/ghc/compiler/typecheck/TcMonad.lhs +++ b/ghc/compiler/typecheck/TcMonad.lhs @@ -702,12 +702,16 @@ pprInstLoc (orig, locn, ctxt) = hsep [ptext SLIT("use of implicit parameter"), quotes (char '?' <> ppr name)] pp_orig (IPBind name) = hsep [ptext SLIT("binding for implicit parameter"), quotes (char '?' <> ppr name)] + pp_orig RecordUpdOrigin + = ptext SLIT("a record update") + pp_orig DataDeclOrigin + = ptext SLIT("the data type declaration") + pp_orig InstanceDeclOrigin + = ptext SLIT("the instance declaration") pp_orig (LiteralOrigin lit) = hsep [ptext SLIT("the literal"), quotes (ppr lit)] pp_orig (PatOrigin pat) = hsep [ptext SLIT("the pattern"), quotes (ppr pat)] - pp_orig (InstanceDeclOrigin) - = ptext SLIT("the instance declaration") pp_orig (ArithSeqOrigin seq) = hsep [ptext SLIT("the arithmetic sequence"), quotes (ppr seq)] pp_orig (SignatureOrigin)