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

GHC ghc-devs at haskell.org
Tue Aug 21 16:15:50 UTC 2018


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

 * status:  new => closed
 * testcase:   => rename/should_fail/T15487
 * resolution:   => fixed


Comment:

 Great report. We now get
 {{{
 T15487.hs:7:9: error:
     Ambiguous occurrence ‘null’
     It could refer to
        either ‘Prelude.null’,
               imported from ‘Prelude’ at T15487.hs:1:8-13
               (and originally defined in ‘Data.Foldable’)
            or ‘T15487.null’, defined at T15487.hs:5:1
 }}}

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


More information about the ghc-tickets mailing list