[Haskell-cafe] ANNOUNCE: vector-bytestring-

Bas van Dijk v.dijk.bas at gmail.com
Fri Oct 14 13:37:07 CEST 2011

On 14 October 2011 12:58, Christian Maeder <Christian.Maeder at dfki.de> wrote:
> Would it not be simple to use a newtype for ByteString (rather than a
> synonym)?

My "vision" for the future of bytestring and vector-bytestring is that
they will be replaced by vector directly. This way users don't have to
think about choosing between bytestring and vector and can go to
vector directly to work with Word8 vectors or interface with foreign

This would mean moving some (bytestring only) functions from
vector-bytestring to vector like mapAccumL/R, create, createAndTrim,
etc. and generalizing them from Word8s to any Storable.

So in my vision there's no ByteString type anymore, just Vectors. The
vector-bytestring package is meant to make the transition smoother.

If there's need for a specific Show instance for Vectors of Word8s we
can always add one directly to vector. (Roman, what are your thoughts
on this?)


More information about the Haskell-Cafe mailing list