On Mon, Aug 23, 2010 at 8:29 AM, Simon Marlow <marlo...@gmail.com> wrote:
> Which documentation are you referring to?  This looks ok to me:
>
> http://www.haskell.org/ghc/docs/6.12.2/html/libraries/base-4.2.0.1/System-IO.html#v%3AhGetBuf

Indeed, while there isn't a big fat warning, it does say that it reads
'count' bytes.

However, both RawIO.read and BufferedIO.fillReadBuffer are a bit
misleading.  The former says that it doesn't block when there isn't
data available, the latter doesn't say anything.

http://hackage.haskell.org/packages/archive/base/4.2.0.1/doc/html/src/GHC-IO-Device.html#RawIO
http://hackage.haskell.org/packages/archive/base/4.2.0.1/doc/html/src/GHC-IO-BufferedIO.html#BufferedIO

Cheers! =)

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

Reply via email to