[GHC] #11071: The "Not in scope" error is misleading
GHC
ghc-devs at haskell.org
Sun Nov 8 18:31:30 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 jstolarek):
Replying to [comment:2 mojojojo]:
> while in reality it is the absence of the whole namespace that is the
problem
I disagree. If you have:
```
import Foo hiding ( bar )
```
then `Foo` namespace is available, but any reference to `bar` will still
result with "not in scope" error. I find the error message entirely
correct and vote to close this ticket as "invalid".
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11071#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list