
9 Sep
2011
9 Sep
'11
8:12 a.m.
Roman Cheplyaka
In general it's a bad idea to use mapM over IO.
Could you explain why?
Most applications don't require loading the entire result into memory, so a combinator like foldM is more appropriate. You should use mapM over IO only, when the list is short, or when there is really no way around loading everything into memory. Greets, Ertugrul -- nightmare = unsafePerformIO (getWrongWife >>= sex) http://ertes.de/