[GHC] #14881: Consistent labeling of redundant, qualified imports

GHC ghc-devs at haskell.org
Fri Mar 2 22:48:02 UTC 2018


#14881: Consistent labeling of redundant, qualified imports
-------------------------------------+-------------------------------------
        Reporter:  crockeea          |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  lowest            |            Milestone:
       Component:  Compiler          |              Version:  8.2.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Poor/confusing    |  Unknown/Multiple
  error message                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Currently this is by design.

 * `adjust` (unqualified) is unambiguous in this scope
 * But `lookup` is ambiguous -- it is not clear whether you mean `M.lookup`
 or `Prelude.lookup`.

 But I suppose that in the context of this error message we can ''only''
 mean the `lookup` imported from `Data.Map` so we could unconditinally
 print unqualified.

 Any volunteers?

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


More information about the ghc-tickets mailing list