patch applied (packages/HaXml): Use ByteString for output (contributed by Jason Dagit, with modifications)

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Wed Nov 15 08:08:51 EST 2006


On Wed, 2006-11-15 at 18:47 +0900, Takano Akio wrote:
> On Wed, 15 Nov 2006 00:21:55 +0000
> Duncan Coutts <duncan.coutts at worc.ox.ac.uk> wrote:
> > On Tue, 2006-11-14 at 14:53 -0800, Jason Dagit wrote:
> > > On 11/14/06, Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:
> > > > Hello Malcolm,
> > > >
> > > > Tuesday, November 14, 2006, 8:49:31 PM, you wrote:
> > > >
> > > > > involved, which is why I choose a different route.  I am open to further
> > > > > ideas about how to best achieve a similar effect (i.e. ByteString ops
> > > > > available, but minimal code duplication).
> > 
> > For minimal code duplication make it generate ByteString internally and
> > have the String version just call pack/unpack. If I remember correctly,
> > unpack is lazy (and if it isn't, it should be).
> 
> That way, I'm afraid you lose the ability to handle characters outside
> Latin-1.

Then wait until we have the new ByteString-based Data.PackedString which
will handle full Unicode.

Duncan



More information about the Libraries mailing list