Andy Gill <[EMAIL PROTECTED]> writes:
> The following program does not print Hello:
>
> import System
>
> main = die "Hello\n"
>
> die :: String -> IO ()
> die s = putStrLn s >> exitWith (ExitFailure 1)
It does on my machine (linux ghc-4.02). Did you try flushing stdout?
die s = putStrLn s
>> hFlush stdout
>> exitWith (ExitFailure 1)
hth,
Matthias
--
Max-Planck-Institut f�r Informatik
[EMAIL PROTECTED]
http://www.mpi-sb.mpg.de/~fis
- Unflushed output? Andy Gill
- RE: Unflushed output? Matthias Fischmann
- RE: Unflushed output? Sigbjorn Finne (Intl Vendor)
