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

Ketil Malde ketil at malde.org
Wed Oct 19 21:29:04 CEST 2011


Michael Snoyman <michael at snoyman.com> writes:

> sense to try and pursue something like what you're suggesting, but I
> think the default Show (Vector Word8) should be the one most useful,
> most of the time, and I think the general consensus seems to be the
> current ByteString instance fits that role.

Hm.  I think it is slightly weird to display a numeric value (Word8) as
a Char.  Also, I would prefer a representation making the type explicit
(but unlike ByteString, vector seems to add a type annotation.)  Would
you still support the truncating behavior for 'read' and values above 255?  

(ByteString has two interfaces, ByteString and .Char8, but as there can
be only one Show instance, I see why it works the way it does.)

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants



More information about the Haskell-Cafe mailing list