lazy Printing question

Wolfgang Jeltsch wolfgang@jeltsch.net
Tue, 22 Jul 2003 14:16:32 +0200


On Monday, 2003-07-21, 14:36, CEST, David Roundy wrote:
> [...]

> My guess would be to try running
>
> main = putStr $ unlines $ map show $ filter magicP sqs
>
> It may be that print is doing something like checking the length of the list
> which would of course not allow for lazy printing.

Is print allowed to do so? Maybe, the problem has something to do with 
buffering. I encountered similar problems with GHCi.

Wolfgang