Posix library ,Concurrent Haskell and Haskell IO sub-system

Volker Stolz vs@foldr.org
Fri, 11 Jul 2003 10:49:47 +0200


On Fri, Jul 11, 2003 at 08:39:54AM +0200, Rafael Martinez Torres wrote:
> (piper,pipew) <- createPipe
> piperHandle <- fdToHandle(piper)
> threadWaitRead ( fdToInt(handleToFd(piperHandle)) )
> message <- hGetLine piperHandle --or whatever.

There's no need to call threadWaitRead, Haskell's RTS will take care of
Non-Blocking IO for you.
-- 
"Gemischte Materialien // Früher: Restmüll"
Aufschrift auf einem Container, Informatik-Parkplatz
http://lambda.foldr.org/~vs/ * PGP * S/MIME