On 2009 Feb 20, at 4:38, Serge D. Mechveliani wrote:
The first command outputs

 ---------------------------------
   t =  ((a : nil) + (b : nil))
 Bug:
 substitute {(X, a), (Xs, nil), (Ys, (b : nil))} X:
 sort mismatch in substitution
 ---------------------------------

And the second command skips (in  ./log) the line of   t = ...
Who can tell what is the matter?

The ghc runtime doesn't flush stdout when an exception stops the program. This is arguably a bug in the runtime; if you set stdout to line buffering or no buffering you should get pretty much the same output from both. (It's still possible for buffering to cause lines to come out in a different order, so you might prefer unbuffered).

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com
system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH


Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to