20 Aug
2011
20 Aug
'11
3:35 p.m.
Ozgur Akgun
Actually in this case sequence and sequence_ are identical. You have IO for m, and () for a, so:
sequence :: [IO ()] -> IO () sequence_ :: [IO ()] -> IO ()
No, compare the type signatures: sequence :: [IO ()] -> IO [()] sequence_ :: [IO ()] -> IO () In the former case you will receive a list of as many values of type () as there are actions. Greets, Ertugrul -- nightmare = unsafePerformIO (getWrongWife >>= sex) http://ertes.de/