
7 Oct
2012
7 Oct
'12
6:05 p.m.
On 10/07/2012 12:41 PM, Christopher Howard wrote:
For the curious newbies among us: Why would you want to perform an IO action on a list of IO actions?
Let's say you have a list of URLs, and you map, downloadUrl :: URL -> IO Stuff over that list. The result will be a list, [IO Stuff]. Now suppose you want to print them all one at a time. Printing is an IO action, so this is performing an IO action (print) on a list of IO "actions" (downloaded URLs).