On the current GHC I get

        foo: fatal error: No threads to run!  Deadlock?

This is a bit better than a seg fault but not a lot.
Getting better error reporting for black holes is on our wish list.

You can get indeed warnings about unused variables: try -W

Simon

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> Sent: Thursday, July 01, 1999 9:50 PM
> To: [EMAIL PROTECTED]
> Subject: A bug or not?
> 
> 
> This program simply SIGSEGVs right at the beginning. Is it supposed to
> give some more informative error message? I've heard that ghc-compiled
> programs should never crash as long as one doesn't use hacks like
> ccall or such :-)
> 
> import System
> main = do
>     print f
>     exitWith ExitSuccess
> f :: String
> f = f
> 
> 
> Today I made a mistake and used the same name for a function parameter
> and for one variable in its `where' clause. This constructed a loop
> similar to the above and caused mysterious crashes. If ghc emitted
> warnings for unused variables, such programmer bug would be easier
> to spot.
> 
> -- 
>  __("<    Marcin Kowalczyk * [EMAIL PROTECTED] 
> http://kki.net.pl/qrczak/
>  \__/          GCS/M d- s+:-- a22 C+++>+++$ UL++>++++$ P+++ 
> L++>++++$ E-
>   ^^                W++ N+++ o? K? w(---) O? M- V? PS-- PE++ 
> Y? PGP->+ t
> QRCZAK                  5? X- R tv-- b+>++ DI D- G+ e>++++ h! 
> r--%>++ y-
> 

Reply via email to