Hello Marc,

Thursday, April 5, 2007, 8:40:04 AM, you wrote:

> Bulat:
> When also using unsafeInterleavedMapM for the second mapM the program will 
> stop
> after processing the first list item. 
> question 2
> I can't see why this is the case.

because there is no need to calculate entire answer before return.
unsafeInterleavedMapM is written in the manner that only first list
item will be obligatory calculated, all other only on demand :)))

you definitely should read http://haskell.org/haskellwiki/IO_inside

> Continuation does work as well:

this code is 100% equivalent of (mapM_ (c-> ...)) proposed earlier


-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to