#5564: Panic in ghci name suggestion
---------------------------------+------------------------------------------
    Reporter:  judahj            |       Owner:              
        Type:  bug               |      Status:  new         
    Priority:  normal            |   Component:  Compiler    
     Version:  7.2.1             |    Keywords:              
    Testcase:                    |   Blockedby:              
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------
 From a plain invocation of ghci:
 {{{
 $ ghci
 GHCi, version 7.2.1: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package ffi-1.0 ... linking ... done.
 Prelude> 2
 2
 Prelude> fit

 <interactive>:0:1:ghc: panic! (the 'impossible' happened)
   (GHC version 7.2.1 for x86_64-apple-darwin):
         unknownNameSuggestErr UnhelpfulSpan

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

 Prelude>
 }}}

 Presumably, ghci wants to suggest the `it` variable but is getting
 confused because that variable wasn't defined in a source file.

 Note that this doesn't actually crash ghci; the prompt resumes as normal
 after the error message is printed out.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5564>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to