[Haskell-cafe] ANNOUNCE: vector-bytestring-0.0.0.0

Ertugrul Soeylemez es at ertes.de
Sat Oct 15 20:50:14 CEST 2011


Roman Leshchinskiy <rl at cse.unsw.edu.au> wrote:

> > Personally, I think that ByteString and especially Vector Word8
> > aren't strings and shouldn't be treated as such. But I wouldn't be
> > strongly against showing them as strings. However, I *am* strongly
> > against using UndecidableInstances in vector and I don't see how to
> > implement this without using them.
>
> I meant OverlappingInstances, of course. To clarify, I would still
> consider it if everybody thinks it's a really good idea.

My suggestion was to remove the generic Show instance and add only
specialized instances.  This is more work, but will also yield better
results.  In particular, it allows specialized string representations
for other types, too.  For example the way values of type Vector Bool
are printed is extremely useless.  I always find myself writing my own
debugging output functions for boolean vectors.


Greets,
Ertugrul


-- 
nightmare = unsafePerformIO (getWrongWife >>= sex)
http://ertes.de/





More information about the Haskell-Cafe mailing list