runghc exit status

Simon Marlow simonmar at microsoft.com
Wed May 11 05:55:03 EDT 2005


On 11 May 2005 07:37, Frederik Eaton wrote:

> It looks like runghc is exiting with status 0 if there is a problem.
> Shouldn't this be non-zero?
> 
> $ runghc -V
> The Glorious Glasgow Haskell Compilation System, version 6.4
> $ runghc /dev/null; echo $?
> Could not find module `/dev/null':
>   use -v to see a list of the files searched for
>   (one of the roots of the dependency analysis)
> 
> <interactive>:1:76:
>     Failed to load interface for `Main':
>         Could not find module `Main':
>           it is not a module in the current program, or in any known
> package. 0

It turns out I fixed this bug after 6.4, but later the fix was
accidentally reverted.  So thanks for reporting this again, it'll work
properly in 6.4.1.

Cheers,
	Simon



More information about the Glasgow-haskell-bugs mailing list