
15 Jun
2012
15 Jun
'12
5:39 a.m.
On Fri, 15 Jun 2012 09:07:54 0100, Simon Marlow
Control.Newtype. I would still like the Traversable abstraction I mentioned in my last message.
Control.Newtype is not important. I added it just to be able to write ala' Concurrently traverse getURL urls instead of runConcurrently $ traverse (Concurrently . getURL) urls But it is probably nicer to have doConcurrently :: Traversable t => (a -> IO b) -> t a -> IO (t b) then you could write doConcurrently getURL urls and your doConcurrently would just be "doConcurrently id". I updated the code at https://gist.github.com/2926572 greetings, Sjoerd