[Haskell-cafe] How can I avoid buffered reads?

Leon Smith leon.p.smith at gmail.com
Sun Dec 9 10:29:46 CET 2012


On Thu, Dec 6, 2012 at 5:23 PM, Brandon Allbery <allbery.b at gmail.com> wro\

> Both should be cdevs, not files, so they do not go through the normal
> filesystem I/O pathway in the kernel and should support select()/poll().
>  ("ls -l", the first character should be "c" instead of "-" indicating
> character-mode device nodes.)  If ghc is not detecting that, then *that* is
> indeed an I/O manager issue.
>

The issue here is that if you look at the source of fdReadBuf,  you see
that it's a plain system call without any reference to GHC's (relatively
new) IO manager.

Best,
Leon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121209/8e77e333/attachment.htm>


More information about the Haskell-Cafe mailing list