[Haskell-beginners] Re: Sequential IO processing

Sergey V. Mikhanov sergey at mikhanov.com
Thu Feb 19 10:35:08 EST 2009


Now works!

Thank you very much -- a nice lesson learned for me.

S.

>> 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.
>
>
> Regards,
> apfelmus


More information about the Beginners mailing list