[GHC] #11071: The "Not in scope" error is misleading

GHC ghc-devs at haskell.org
Sun Nov 8 19:13:33 UTC 2015


#11071: The "Not in scope" error is misleading
-------------------------------------+-------------------------------------
        Reporter:  mojojojo          |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.2
      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 mojojojo):

 Replying to [comment:3 jstolarek]:

 You're missing the point here. The issue is that the message does not make
 sense specifically when the namespace is **not imported in any way**. It
 misleads the user to assume that it is imported but does not contain the
 member (or has it hidden), when the issue is absolutely different.

 Your example is simply not related to the issue.

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


More information about the ghc-tickets mailing list