fail message sent to stdout?
Hi, It seems that under jhc, the from fail (called in the IO monad) is sent to stdout rather than stderr. Is this a policy choice... and is it open to debate? I discovered this because a test script was failing due to the assumption that fail would print to stderr. Admittedly, it isn't in the standard, but it makes sense to me that it ought to go to stderr. -- David Roundy
On Sat, Aug 29, 2009 at 03:51:13PM -0400, David Roundy wrote:
It seems that under jhc, the from fail (called in the IO monad) is sent to stdout rather than stderr. Is this a policy choice... and is it open to debate? I discovered this because a test script was failing due to the assumption that fail would print to stderr. Admittedly, it isn't in the standard, but it makes sense to me that it ought to go to stderr.
Yeah, this is also a bug. Most of the exception support needs to be filled in various ways actually. I have added a bug about it to the bug tracker. http://repetae.net/computer/jhc/bug/ John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/
participants (2)
-
David Roundy -
John Meacham