> From: Christian Sievers[SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, August 21, 1997 6:59 PM
> To: [EMAIL PROTECTED]
> Subject: how about main :: IO Int
>
> Hello, I just wondered if it was ever considered to let the main
> function
> have the type IO Int, in order to let the haskell programm be able to
> return an exit code to the calling environment, as C's int main(...)
> does. I think real programms sometimes want to exit(1) in some
> cases.
>
> Christian Sievers
------------------------------------------------------------------------
-----------------
Isn't this a Unix-specific convention, to treat the value returned by
main()
as the exit value of the process?
Nikhil