Compiler bug

Ian Lynagh igloo at earth.li
Wed Feb 28 06:33:01 EST 2007


Hi Paul,

On Sun, Jan 28, 2007 at 12:49:44PM +0300, Paul wrote:
> 
> Chasing modules from: hask1.hs
> Compiling Main ( hask1.hs, hask1.o )
> ghc-6.4: panic! (the `impossible' happened, GHC version 6.4):
> ds_app_type Main.Tree{tc r16z} [a{tv a1a9}]
> 
> Please report it as a compiler bug to glasgow-haskell-bugs at haskell.org,
> or http://sourceforge.net/projects/ghc/.

Thanks for the report. I think the problem is fixed in newer versions of
GHC (I've tried 6.4.2 and 6.6), which give the error

hask1.hs:24:1:
    Class `Tree' used as a type
    In the class declaration for `Tree'

when using "data Node ..." and

    Multiple declarations of `Main.Tree'
        Declared at: hask1.hs:12:5
                     hask1.hs:14:6

when using "data Tree ...".


Thanks
Ian




More information about the Glasgow-haskell-bugs mailing list