bytestring

Fast, compact, strict and lazy byte strings with a list interface

https://github.com/haskell/bytestring

Version on this page:0.10.6.0
LTS Haskell 22.39:0.11.5.3
Stackage Nightly 2024-10-31:0.12.1.0
Latest on Hackage:0.12.1.0@rev:1

See all snapshots bytestring appears in

BSD-3-Clause licensed by Don Stewart, Duncan Coutts
Maintained by Duncan Coutts
This version can be pinned in stack with:bytestring-0.10.6.0@sha256:ffcb5b0f5fa50f64a279c29dee70031b481d3e47f980c58949dad3b2c7d7f730,8932

Module documentation for 0.10.6.0

ByteString: Fast, Packed Strings of Bytes

Build Status

This library provides the Data.ByteString module – strict and lazy byte arrays manipulable as strings – providing very time/space-efficient string and IO operations.

For very large data requirements, or constraints on heap size, Data.ByteString.Lazy is provided, a lazy list of bytestring chunks. Efficient processing of multi-gigabyte data can be achieved this way.

The library also provides Data.ByteString.Builder for efficient construction of ByteString values from smaller pieces during binary serialization.

Requirements:

  • Cabal 1.10 or greater
  • cabal-install
  • GHC 6.12 or greater

Building:

cabal install

You can run the testsuite as follows:

cabal test

Authors

ByteString was derived from the GHC PackedString library, originally written by Bryan O’Sullivan, and then by Simon Marlow. It was adapted and greatly extended for darcs by David Roundy and others. Don Stewart and Duncan Coutts cleaned up and further extended the implementation and added the .Lazy code. Simon Meier contributed the Builder feature.

Changes

0.10.6.0 Duncan Coutts [email protected] Mar 2015

  • Rename inlinePerformIO so people don’t misuse it
  • Fix a corner case in unfoldrN
  • Export isSuffixOf from D.B.Lazy.Char8
  • Add D.B.Lazy.elemIndexEnd
  • Fix readFile for files with incorrectly reported file size
  • Fix for builder performance with ghc 7.10
  • Fix building with ghc 6.12

0.10.4.1 Duncan Coutts [email protected] Nov 2014

  • Fix integer overflow in concatenation functions
  • Fix strictness of lazy bytestring foldl’
  • Numerous minor documentation fixes
  • Various testsuite improvements