[Haskell-cafe] Adding a builder to the "bytestring" package?

Michael Snoyman michael at snoyman.com
Wed Jan 19 22:30:51 CET 2011

On Wed, Jan 19, 2011 at 10:04 PM, Johan Tibell <johan.tibell at gmail.com> wrote:
> On Wed, Jan 19, 2011 at 8:37 PM, Michael Snoyman <michael at snoyman.com> wrote:
>> Isn't Simon Meier working on migrating his code from blaze-builder
>> into binary?
> So I heard (although not directly from Simon). I think it would be
> nice to port the blaze-builder implementation to binary, but to keep
> binaries current interface (for now).

What's the advantage to moving in into binary as opposed to bytestring?

>> I agree with John that it would make more sense to go in
>> bytestring. Assuming that happens, would the builder from text end up
>> being based on it?
> ByteString and Text don't share an underlying data structure at the
> moment (one uses pinned ForeignPtrs and one unpinned ByteArray#s) so
> they can use the same builder efficiently. Some day perhaps.

I hadn't realized, I had just assumed it was using ByteString
underneath. I'll pay more attention next time, thanks for informing me


More information about the Haskell-Cafe mailing list