
16 Mar
2014
16 Mar
'14
10:25 a.m.
Hola! Control.Concurrent currently has: threadWaitRead :: Fd -> IO () threadWaitWrite :: Fd -> IO () threadWaitReadSTM :: Fd -> IO (STM (), IO ()) threadWaitWriteSTM :: Fd -> IO (STM (), IO ()) (btw, whoever added the STM versions, I <3 you) I would like to propose adding: threadWaitError :: Fd -> IO () threadWaitErrorSTM :: Fd -> IO (STM (), IO ()) to allow for blocking on detecting error condition on file descriptors, similar to what C's select() allows. Cheers, Merijn