[GHC] #852: Browsing a module in ghci can cause a panic
GHC
trac at galois.com
Wed Aug 23 06:03:37 EDT 2006
#852: Browsing a module in ghci can cause a panic
----------------------------------+-----------------------------------------
Reporter: mnislaih | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 6.6
Component: Driver | Version: 6.5
Severity: normal | Resolution: fixed
Keywords: ghci module package | Os: MacOS X
Difficulty: Easy (1 hr) | Architecture: x86
----------------------------------+-----------------------------------------
Changes (by simonmar):
* resolution: => fixed
* status: new => closed
Comment:
This no longer crashes:
{{{
*Test.Test2> :b Test2
module main:Test2 is not loaded
}}}
The problem here is that the file {{{Test2.hs}}} contains the wrong module
name. GHC is confused: you asked to browse a module called Test2, and it
found a file that should contain it, but it knows that the current session
does not contain a module called {{{Test2}}} so it refuses to browse it.
The error message is slightly cryptic but I don't see an easy way to
improve it.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/852>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list