[GHC] #15611: scope errors lie about what modules are imported
GHC
ghc-devs at haskell.org
Thu Sep 6 17:25:09 UTC 2018
#15611: scope errors lie about what modules are imported
-------------------------------------+-------------------------------------
Reporter: dmwit | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.6.1
Component: Compiler | Version: 8.4.2
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Here's Test.hs:
{{{
module Test where
}}}
And here's a ghci session:
{{{
% ghci Test.hs
GHCi, version 8.4.2: http://www.haskell.org/ghc/ :? for help
*Test> Test.foo
<interactive>:1:1: error:
Not in scope: ‘Test.foo’
No module named ‘Test’ is imported.
}}}
That "No module named ‘Test’ is imported." part seems blatantly wrong (and
persists even if I explicitly `import Test` rather than using the implicit
loading of the module).
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15611>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list