
21 Jul
2006
21 Jul
'06
8:18 a.m.
On 21/07/06, Dusan Kolar
Prelude> putStr "Ahoj\n" Ahoj Prelude> putStr "Ahoj\n" `seq` 3+3 6 Prelude> :q Leaving GHCi.
And not
Prelude> putStr "Ahoj\n" Ahoj Prelude> putStr "Ahoj\n" `seq` 3+3 Ahoj 6
Well, I understand that seq evaluates the first argument. But the result of evaluating putStr is a monadic action. Not execution of that action. Regards, Piotr Kalinowski -- Intelligence is like a river: the deeper it is, the less noise it makes