[Haskell-cafe] Tracking characters and a timestamp ?

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Apr 5 05:06:46 EDT 2007


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:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list