a new impossible happened in ghci?

Simon Marlow marlowsd at gmail.com
Fri Jan 30 04:18:13 EST 2009


Peter Hercek wrote:
> Hi,
> 
> My preliminary search indicated this is new,
>  but still, should I add this to GHC Trac?
> Maybe I just cannot formulate my query well.
> 
> See the ghci session log at the end.
> 
> Peter.
> 
> 
> status:0 peter at dwarf [715] ~
> % ghci
> GHCi, version 6.10.1: http://www.haskell.org/ghc/  :? for help
> Loading package ghc-prim ... linking ... done.
> Loading package integer ... linking ... done.
> Loading package base ... linking ... done.
> Prelude> :def err (\_->return$concat$replicate(read "\"1\"") "a")
> Prelude> :err
> ghc: panic! (the 'impossible' happened)
>   (GHC version 6.10.1 for i386-unknown-linux):
>     Prelude.read: no parse
> 
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Fixed:

Prelude> :def err (\_->return$concat$replicate(read "\"1\"") "a")
Prelude> :err
*** Exception: Prelude.read: no parse


Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list