logo       

Re: [GHC] #852: Browsing a module in ghci can cause a panic: msg#00155

lang.haskell.glasgow.bugs

Subject: Re: [GHC] #852: Browsing a module in ghci can cause a panic

#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_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise