[Haskell-cafe] bytestring vs. uvector

Don Stewart dons at galois.com
Tue Mar 10 17:55:09 EDT 2009


bulat.ziganshin:
> Hello Don,
> 
> Wednesday, March 11, 2009, 12:48:35 AM, you wrote:
> 
> >> unfortunately, Array library unboxed arrays still aren't based on any
> >> Unboxable *class*
> 
> > Hmm. Aren't all the array library types based on MArray and IArray?
> 
> > So I can define my own say, new STUArray element type by writing an instance of
> > MArray for it.  Like so:
> 
> yes, you can, just this definition duplicates too much code

Ah yes. Then in that case that is indeed true. Array / UArray aren't as
extensible as the newer systems modelled on Storable (like UA in
vector/uvector).


More information about the Haskell-Cafe mailing list