Improve display of newlines around error and warning messages.

This commit is contained in:
Joey Hess 2011-09-06 13:46:08 -04:00
parent 14f75ced75
commit 07125dca53
5 changed files with 23 additions and 7 deletions

View file

@ -34,3 +34,13 @@ The newline is in the wrong place and confuses the user. It should be printed _a
> failed
>
> --[[Joey]]
>> Well, I fixed this in all cases except a thrown non-IO error (last
>> example aboce), which output is printed by haskell's runtime. I'd
>> have to add a second error handler to handle those, and it's not
>> clear what it would do. Often an error will occur before anything
>> else is printed, and then the current behavior is right; if something
>> has been printed it would be nice to have a newline before the error,
>> but by the time the error is caught we'd be out of the annex monad
>> and not really have any way to know if something has been printed.
>> I think my fix is good enough [[done]] --[[Joey]]