bytebuild: Build byte arrays

[ bsd3, data, library ] [ Propose Tags ]

This is similar to the builder facilities provided by Data.ByteString.Builder. It is intended to be used in situations where the following apply:

  • An individual entity will be serialized as a small number of bytes (less than 512).

  • A large number (more than 32) of entities will be serialized one after another without anything between them.

Unlike builders from the bytestring package, these builders do not track their state when they run out of space. A builder that runs out of space simply aborts and is rerun at the beginning of the next chunk. This strategy for building is suitable for most CSVs and several line protocols (carbon, InfluxDB, etc.).


Manual Flags


Add bounds-checking to primitive array operations


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,,,,,,,,
Change log
Dependencies base (>= && <4.20), byteslice (>=0.2.6 && <0.3), bytestring (>= && <0.13), haskell-src-meta (>=0.8.13), integer-logarithms (>=1.0.3 && <1.1), natural-arithmetic (>=0.1 && <0.3), primitive (>=0.7 && <0.10), primitive-offset (>=0.2 && <0.3), run-st (>=0.1.2 && <0.2), template-haskell (>=2.16), text (>=2.0 && <2.2), text-short (>=0.1.3 && <0.2), wide-word (>= && <0.2), zigzag [details]
License BSD-3-Clause
Copyright 2019 Andrew Martin
Author Andrew Martin
Category Data
Home page
Bug tracker
Source repo head: git clone git://
Uploaded by l3c_amartin at 2024-02-07T14:02:57Z
Distributions LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 21 direct, 89 indirect [details]
Downloads 6498 total (90 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-02-07 [all 1 reports]