-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8/14/10 19:07 , Ben Millwood wrote:
> Strangely, it prints this before the output of your program - this
> isn't terribly important, but for the sake of completeness, it's
> because of the different buffering characteristics of stdout and
> stderr, which confusingly mean that even though your program
produces
> output and then produces an error, the error is printed immediately
> while the output waits until the program is terminated to be produced.
> I think. Something like that, anyway.
My guess is he's redirecting stdout and stderr to the same file, and stderr
happens to get flushed by the Haskell runtime before stdout (possibly
because a flush is performed regardless when an exception is printed). It
is, as you note, not really relevant to the actual logic error leading to
the exception.
- --
brandon s. allbery [linux,solaris,freebsd,perl]
allbery@kf8nh.comsystem administrator [openafs,heimdal,too many hats]
allbery@ece.cmu.eduelectrical and computer engineering,
carnegie mellon university KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/iEYEARECAAYFAkxnJBUACgkQIn7hlCsL25X7jACgzk4uCCP/1LBDfgtRU0vfobZI
+BgAn2oabimC8tKOII6xBC+LM41oTpqd
=q1sj
-----END PGP SIGNATURE-----
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.orghttp://www.haskell.org/mailman/listinfo/haskell-cafe