Questions about the array APIs

Bulat Ziganshin bulat.ziganshin at
Mon Nov 20 13:33:16 EST 2006

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)

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at

More information about the Libraries mailing list