[Haskell-cafe] Re: [Haskell] Re: ANNOUNCE: enumerator, an
alternative iteratee package
Felipe Lessa
felipe.lessa at gmail.com
Mon Aug 23 07:38:37 EDT 2010
On Mon, Aug 23, 2010 at 8:29 AM, Simon Marlow <marlowsd at 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.
More information about the Haskell-Cafe
mailing list