[Haskell-cafe] Data.Vector with stride

Niklas Hambüchen mail at nh2.me
Mon Dec 16 02:13:50 UTC 2013

For low-level performance, especially when dealing with images, pixel
buffers, camera devices etc, arrays can have a "stride" to align rows to
word boundaries.


Data.Vector does not support strides (as mentioned in
but it would be nice to have them, especially for Storable vectors and
interfacing with C imaging libraries.

Is there a particular reason / difficulty that would go against an
implementation of a Data.Vector.Storable.Stride and the corresponding
generic vector instances?

More information about the Haskell-Cafe mailing list