[Haskell-cafe] Array, Vector, Bytestring

Peter Simons simons at cryp.to
Tue Jun 4 16:01:37 CEST 2013


Hi Clark,

 > How is this a problem?
 >
 > If you're representing text, use 'text'.
 > If you're representing a string of bytes, use 'bytestring'.
 > If you want an "array" of values, think c++ and use 'vector'.

the problem is that all those packages implement the exact same data
type from scratch, instead of re-using an implementation of a
general-purpose array internally. That is hardly desirable, nor is it
necessary.

Take care,
Peter




More information about the Haskell-Cafe mailing list