Christian Sievers wrote:

> 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.

Real programmers can do this already. They simply use the standard library
function System.exitWith [1]. I don't like the idea of changing the type of
main to IO Int for several reasons...

Thomas Hallgren

[1]  http://haskell.systemsz.cs.yale.edu/onlinelibrary/system.html



Reply via email to