Bas van Dijk <v.dijk.bas@gmail.com> wrote:
I'm pleased to announce the beta release of vector-bytestring. This library provides the type ByteString which is defined as a type synonym for a storable Vector of Word8s (from the vector package):
type ByteString = Data.Vector.Storable.Vector Word8
It exports the same API as the bytestring package except that the module names are prefixed with: Data.Vector.Storable.ByteString instead of Data.ByteString.
The very ambitious goal of this package is that it will eventually replace our beloved bytestring package. By basing this package on vector, we can benefit from all the optimizations (like stream-fusion!) in that library. We will also have just a single library to test, debug and optimize.
That's great! I already prefer to use vectors sometimes anyway, because the interface is just so much nicer. But one question out of interest: Is there any particular reason to prefer storable vectors instead of unboxed vectors? The element type is fixed to Word8 anyway. Greets, Ertugrul -- nightmare = unsafePerformIO (getWrongWife >>= sex) http://ertes.de/