[Haskell-cafe] exception output

Ferenc Wagner wferi at niif.hu
Tue Dec 19 11:47:42 EST 2006


Hi,

the following program

main = readFile "nonexistent" >>= putStr

is meant to produce an exception.  When compiled with GHC 6.4, it
outputs the "*** Exception..." string to stderr, which makes me happy.
However, when run with runghc6 or runhugs, the message is sent to
stdout, which makes me sad.

Is this inconsistency intentional?
-- 
Thanks,
Feri.


More information about the Haskell-Cafe mailing list