scope errors lie about what modules are imported
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).
Trac metadata
Trac field | Value |
---|---|
Version | 8.4.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |