[Haskell-cafe] Builder vs Builder

Gregory Collins greg at gregorycollins.net
Tue Jan 28 08:30:38 UTC 2014

If you want to try to support the last two or three haskell platform
versions, you're committing to supporting GHC 7.4.x and bytestring
still. Debian stable still has 7.4.1. Plus there are one or two things that
are in blaze-builder that people use that didn't make it into bytestring.
So I agree with Kazu, I'm not ready to switch to bytestring builder yet ---
especially since was kind of botched.

I don't like preprocessor tricks here. If the public haddock docs on
Hackage are built on a new machine but the user's machine is old, confusion
is sure to result. You're forcing your downstream users to put in all of
the same #ifdefs you used, too.

Sad though it may be I think we just have to wait a year until everyone's
on a capable version of bytestring, then deprecate blaze-builder and make
the switch as quickly as possible.


On Tue, Jan 28, 2014 at 8:41 AM, Kazu Yamamoto <kazu at iij.ad.jp> wrote:

> Hi Andrew,
> > Does anyone know whether blaze-builder is deprecated in favour of
> > bytestring's new Builder module, or are they the same, or...
> Recently I supported both blaze-builder and bytestring's Builder in
> "fast-logger". So, I would like to share my experience.
> bytestring is tightly bound to GHC's version. GHC version 7.6.x is
> shipped with bytestring while GHC version 7.8.x will be
> shipped with bytestring
> To my impression, bytestring's APIs are stable and good enough in
> bytestring  For instance, while bytestring provides
> Data.ByteString.Builder and .Extra, bytestring does not.
> (Please don't confuse them with Data.ByteString.Lazy.Builder.)
> So, I think switching blaze-builder to bytestring's Builder is too
> early at this moment. But if you are interested, you can get ready for
> bytestring's Builder. You can use the following C's macro:
> #if MIN_VERSION_bytestring(0,10,4)
> For more information, please see the source of fast-logger.
> --Kazu
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

Gregory Collins <greg at gregorycollins.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140128/7e5607db/attachment.html>

More information about the Haskell-Cafe mailing list