[Haskell] select(2) or poll(2)-like function?

Gregory Collins greg at gregorycollins.net
Mon Apr 18 13:05:30 CEST 2011


On Mon, Apr 18, 2011 at 10:06 AM, Svein Ove Aas <svein.ove at aas.no> wrote:

> And I've often wanted a select-equivalent in Haskell. It'd be simple,
> it'd help, so why not?

http://hackage.haskell.org/packages/archive/base/latest/doc/html/Control-Concurrent.html#v:threadWaitRead

Ta-da! It's select(), or something smarter in GHC 7 (epoll() on linux,
kqueue() on BSD/OSX).

G
-- 
Gregory Collins <greg at gregorycollins.net>



More information about the Haskell mailing list