RE: IO question (hGetLine)

2004-06-15 Thread Simon Marlow
On 14 June 2004 16:58, Gerd M wrote: > Duncan Coutts wrote: >> The GHC run time system is designed to block without using CPU when >> all threads are blocked doing IO. Could you give more details? It >> would be useful to see the code or preferably a small test case that >> demonstrates your probl

Re: IO question (hGetLine)

2004-06-14 Thread Gerd M
Duncan Coutts wrote: The GHC run time system is designed to block without using CPU when all threads are blocked doing IO. Could you give more details? It would be useful to see the code or preferably a small test case that demonstrates your problem. What version of ghc are you using? Which OS are

Re: IO question (hGetLine)

2004-06-13 Thread Duncan Coutts
On Sun, 2004-06-13 at 23:41, Gerd M wrote: > I've written a Haskell program that reads continuously from a character > device that provides data line by line and blocks the reader when there's no > data available yet. > At the moment performance isn't a real issue so I thought I would give > hGe

IO question (hGetLine)

2004-06-13 Thread Gerd M
I've written a Haskell program that reads continuously from a character device that provides data line by line and blocks the reader when there's no data available yet. At the moment performance isn't a real issue so I thought I would give hGetLine a try. Unfortunately the program is consuming a