On Wed, Dec 21, 2005 at 06:58:14PM +0000, Philippa Cowderoy wrote: > Surely the actual explosion comes about because PutStr forces the lot at > once? If PutStr were to evaluate a character at a time, the laziness would > be slow and spew a lot of garbage to collect but not hang on to as much > space as you suggest.
Try running putStrLn (unlines (repeat "hello!")) You may be surprised ;-) Best regards Tomasz -- I am searching for a programmer who is good at least in some of [Haskell, ML, C++, Linux, FreeBSD, math] for work in Warsaw, Poland _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe