John MacFarlane | 4 Jul 02:21 2013

bug in Data.ByteString.Lazy or in me?

On a 64-bit Windows 8 server EC2 instance, with Haskell Platform
freshly installed from the package installer,

GHCI> :m + Data.ByteString.Lazy
GHCI> Data.ByteString.Lazy.hGetContents stdin

gives me an immediate error "hGetBufSome: resource exhausted (Not enough
space)", while

GHCI> :m + Data.ByteString
GHCI> Data.ByteString.hGetContents stdin

waits for user input, as expected.

On 32-bit Windows, both work as expected.

Can anyone explain this?  Is this a bug in bytestring?