[Haskell-cafe] Unwrapping long lines in text files
michael rice
nowgate at yahoo.com
Sat Aug 14 19:45:54 EDT 2010
Nope. No redirection.
Michael
--- On Sat, 8/14/10, Brandon S Allbery KF8NH <allbery at ece.cmu.edu> wrote:
From: Brandon S Allbery KF8NH <allbery at ece.cmu.edu>
Subject: Re: [Haskell-cafe] Unwrapping long lines in text files
To: haskell-cafe at haskell.org
Date: Saturday, August 14, 2010, 7:17 PM
-----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 at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical 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 at haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100814/67b9d06c/attachment.html
More information about the Haskell-Cafe
mailing list