
29 Jan
2009
29 Jan
'09
3 a.m.
Alexander Dunlap wrote:
Try removing the "return $" on the last line. foldM ... will already be in the IO monad; return will lift the IO a into the IO monad again, so you'll have IO (IO a), which you don't want.
Fantastic! Worked a treat. Thanks, Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "C++ has its place in the history of programming languages. Just as Caligula has his place in the history of the Roman Empire." -- Robert Firth