bytestring

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

http://github.com/haskell/bytestring

Version on this page:0.12.1.0
LTS Haskell 23.20:0.12.1.0
Stackage Nightly 2025-05-01:0.12.1.0
Latest on Hackage:0.12.2.0

See all snapshots bytestring appears in

BSD-3-Clause licensed by Don Stewart, Duncan Coutts
Maintained by Haskell Bytestring Team, Core Libraries Committee
This version can be pinned in stack with:bytestring-0.12.1.0@sha256:361dd394d22115d6b1cdc040c12b071eba9f7689d8953d8cc2ed6f55f5670252,8973

ByteString: Fast, Packed Strings of Bytes

Build Status Hackage Stackage LTS Stackage Nightly

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
  • GHC 8.0 or greater

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.12.1.0 — February 2024

0.12.0.2 — August 2023

0.12.0.1 — August 2023

0.12.0.0 — July 2023

0.11.5.3 — October 2023

0.11.5.2 — August 2023

0.11.5.1 — August 2023

0.11.5.0 — July 2023

0.11.4.0 — January 2023

0.11.3.1 — May 2022