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

Takano Akio aljee at hyper.cx
Wed Nov 15 04:47:17 EST 2006


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.

Regards,
Takano Akio


More information about the Libraries mailing list