[Haskell-beginners] Re: Sequential IO processing
Sergey V. Mikhanov
sergey at mikhanov.com
Thu Feb 19 10:35:08 EST 2009
Thank you very much -- a nice lesson learned for me.
>> I tried this earlier as well:
>> sequenceIO  = return 
>> sequenceIO (x : xs) = do result <- x
>> resultTail <- sequenceIO xs
>> return result : resultTail
> The last line should be
> return (result : resultTail)
> otherwise it will be parsed as
> (return result) : resultTail
> which is not what you want.
More information about the Beginners