[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
> 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 0.10.0.2 while GHC version 7.8.x will be
shipped with bytestring 0.10.4.0.
To my impression, bytestring's APIs are stable and good enough in
bytestring 0.10.4.0. For instance, while bytestring 0.10.4.0 provides
Data.ByteString.Builder and .Extra, bytestring 0.10.0.2 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:
For more information, please see the source of fast-logger.
More information about the Haskell-Cafe