Re: GHC.Prim.ByteArray# - confusing documentation

2009-12-26 Thread Duncan Coutts
On Thu, 2009-12-24 at 18:18 -0500, Antoine Latter wrote: Folks, I found some of the documentation in GHC.Prim confusing - so I thought I'd share. The documentation for the ByteArray# type[1] explains that's it's a raw region in memory that also remembers it's size. Consequently I expected

Re: GHC.Prim.ByteArray# - confusing documentation

2009-12-26 Thread Antoine Latter
On Sat, Dec 26, 2009 at 12:50 PM, Duncan Coutts duncan.cou...@googlemail.com wrote: It's been on my TODO list for some time to design a portable low level ByteArray module that could be implemented by hugs, nhc, ghc, etc. The aim would be to be similar to ForeignPtr + Storable but using native