Questions about the array APIs
Simon Marlow
simonmarhaskell at gmail.com
Tue Nov 21 07:54:28 EST 2006
Bulat Ziganshin wrote:
> Hello Simon,
>
> Monday, November 20, 2006, 3:44:16 PM, you wrote:
>
>
>>implemented as a sequence of bytes either; indeed the Hugs implementation
>>doesn't represent a UArray using unboxed elements.
>
>
> really? :)
>
> data UArray i e = UArray !i !i !ByteArray
>
> data ByteArray = ByteArray !Int !BytePtr
>
> type BytePtr = ForeignPtr Word8
>
> Hugs implementation actually works via Storable class, and i
> duplicated this in my own ArrayRef lib (only for Hugs, of course)
Ok, I misremembered - thanks for the clarification.
Cheers,
SImon
More information about the Libraries
mailing list