GHC.Prim.ByteArray# - confusing documentation

Bulat Ziganshin bulat.ziganshin at
Wed Dec 30 06:09:28 EST 2009

Hello Simon,

Wednesday, December 30, 2009, 1:44:54 PM, you wrote:

>> Consequently I expected sizeOfByteArray# to return the same number
>> that I passed in to newByteArray#. But it doesn't - It returned
>> however much it decided to allocate, which on my platform is always a
>> multiple of four bytes.
>> This is something which could be clarified in the documentation.

> Thanks, I'll fix the docs.

btw, is it possible to fix the behavior? it will reduce overhead for
storing small strings 

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at

More information about the Glasgow-haskell-users mailing list