[Haskell-cafe] how to apply a function which returns IO() to a list?

Neil Mitchell ndmitchell at gmail.com
Wed Jun 14 05:50:11 EDT 2006


I think the kind of structure you are after is something like:

> writeList [] = return ()
> writeList (x:xs) = do writeHtml x
>                               writeList xs

Which is already defined for you, using sequence_



More information about the Haskell-Cafe mailing list