[GHC] #15487: "Ambiguos occurrence" error message uses strange qualification

GHC ghc-devs at haskell.org
Tue Aug 21 16:12:06 UTC 2018


#15487: "Ambiguos occurrence" error message uses strange qualification
-------------------------------------+-------------------------------------
        Reporter:  j.waldmann        |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.4.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Simon Peyton Jones <simonpj@…>):

 In [changeset:"18c302cb3802e485e0837538d7d09e1ac21c3ee2/ghc"
 18c302cb/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="18c302cb3802e485e0837538d7d09e1ac21c3ee2"
 Improve ambiguous-occurrence error message

 Trac #15487 correctly reported that the qualification
 of a Name in an ambiguous-occurrence error message was
 wrong.  This patch fixes it.

 It's easily done, in RnUtils.addNameClashErrRn

 The problem was that in complaining about M.x we must
 enusre that 'M' part is the same as that used in
 pprNameProvenance.
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15487#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list