[Haskell-cafe] Builder vs Builder

Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=) kazu at iij.ad.jp
Tue Jan 28 07:41:34 UTC 2014

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.


More information about the Haskell-Cafe mailing list