[Haskell-cafe] bug in Data.ByteString.Lazy or in me?

John MacFarlane jgm at berkeley.edu
Thu Jul 4 02:21:04 CEST 2013


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?

John




More information about the Haskell-Cafe mailing list