errors to stdout?

Alastair Reid alastair@reid-consulting-uk.ltd.uk
Sun, 23 Mar 2003 07:23:06 +0000


> Hugs dumps errors, traces, and other diagnostics to stdout.  [...]
> However, I can't imagine the reason, and it is quite annoying to me.

The actual reasons are probably lost in the mists of time.  The
potential problem for Hugs is that, thanks to buffering, error
messages might come out of sync with (earlier than) output which
normal output.

> Would you accept a patch to change everything to stderr?

(I'm assuming 'everything' means error messages only not prompts,
Haskell I/O, etc.)

A patch to change it on runhugs would definitely be cool - anything
not generated by Haskell should definitely go to stderr.

Changing Hugs is potentially more problematic because of issues of
synchronization between stderr and stdout so I'm a little wary of
doing this and we'd want (you) to test it thoroughly first, provide
some test cases, etc.

[Hmmm, what does ghci do?  Do they have any problems?]

--
Alastair Reid