Hello ok,

Monday, September 10, 2007, 6:09:27 AM, you wrote:

>> Locks: getChar has to acquire locks, as does getContents. However,
>> because getContents can operate on blocks, this requires many fewer
>> locks.

> What's to lock against? I'm writing single-threaded code.

unfortunately, there is one common code which used for any i/o. you
may look at http://haskell.org/haskellwiki/Library/Streams
which allows to disable locking and thus provides very fast getChar
implementation 

-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to