In local.glasgow-haskell-bugs, you wrote:
> (This is on sparc-solaris)
> # /usr/local/pub-bkb/ghc/ghc-latest/bin/ghc --make resources/GUIValue.hs 
>resources/Colour.hs -fglasgow-exts 
> ghc-5.02.3: chasing modules from: resources/GUIValue.hs,resources/Colour.hs
> Compiling GUIValue         ( resources/GUIValue.hs, resources/GUIValue.o )
> Compiling Colour           ( resources/Colour.hs, resources/Colour.o )
> ghc-5.02.3: panic! (the `impossible' happened, GHC version 5.02.3):
>         Maybe.fromJust: Nothing
> Is there a workaround, or am I going to have to go back to ghc5.02.2?

[Everything on Linux-x86]

Maybe you're heading in the wrong direction:

stolz@kastor:~/test/resources > $HC5 --make -fglasgow-exts *.hs
ghc-5.03: chasing modules from: Colour.hs,GUIValue.hs
Compiling GUIValue         ( GUIValue.hs, ./GUIValue.o )
Compiling Colour           ( Colour.hs, ./Colour.o )

Let's see:

stolz@kastor:~/test/resources > $HC --make -fglasgow-exts *.hs
ghc-5.02.2: chasing modules from: Colour.hs,GUIValue.hs
lexer: misplaced NUL?
Compiling GUIValue         ( GUIValue.hs, ./GUIValue.o )
lexer: misplaced NUL?
Compiling Colour           ( Colour.hs, ./Colour.o )

Huh? NUL?

stolz@kastor:~/test/resources > hexdump GUIValue.hs | tail
0002290 3a27 7473 2972 2020 203d 3b27 2027 203a
00022a0 7266 6d6f 6b54 7453 6972 676e 7320 7274
00022b0 660a 6f72 546d 536b 7274 6e69 2067 2728
00022c0 5c5c 3a27 5c27 2722 733a 7274 2029 203d
00022d0 5c27 2722 3a20 6620 6f72 546d 536b 7274
00022e0 6e69 2067 7473 0a72 7266 6d6f 6b54 7453
00022f0 6972 676e 2820 3a78 7473 2972 2020 2020
0002300 2020 2020 3d20 7820 3a20 6620 6f72 546d
0002310 536b 7274 6e69 2067 7473 0a72 000a     
000231d
                                    ********
Can you try stripping the offending bytes, e.g. just remove
the last "blank" line in 'vi'. I won't judge if ghc-5.02.3
is wrong here, though.
-- 
Wonderful \hbox (0.80312pt too nice) in paragraph at lines 16--18
Volker Stolz * [EMAIL PROTECTED]
Please use PGP or S/MIME for correspondence!
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to