bytestring: Fast, compact, strict and lazy byte strings with a list interface
An efficient compact, immutable byte string type (both strict and lazy) suitable for binary or 8-bit character data.
The ByteString
type represents sequences of bytes or 8-bit characters.
It is suitable for high performance use, both in terms of large data
quantities, or high speed requirements. The ByteStrin
g functions follow
the same style as Haskell's ordinary lists, so it is easy to convert code
from using String
to ByteString
.
Two ByteString
variants are provided:
Strict
ByteString
s keep the string as a single large array. This makes them convenient for passing data between C and Haskell.Lazy
ByteStrings
use a lazy list of strict chunks which makes it suitable for I/O streaming tasks.
The Char8
modules provide a character-based view of the same
underlying ByteString
types. This makes it convenient to handle mixed
binary and 8-bit character content (which is common in many file formats
and network protocols).
ByteString
s are not designed for Unicode. For Unicode strings you should
use the Text
type from the text
package.
These modules are intended to be imported qualified, to avoid name clashes with Prelude functions, e.g.
import qualified Data.ByteString as BS
[Skip to Readme]
Modules
[Index]
- Data
- Data.ByteString
- Data.ByteString.Char8
- Data.ByteString.Internal
- Data.ByteString.Lazy
- Data.ByteString.Unsafe
- Data.ByteString
Downloads
- bytestring-0.10.0.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
- BenGamari, DonaldStewart, DuncanCoutts, HerbertValerioRiedel, IanLynagh, SylvainHenry, Bodigrim, sjakobi, chessai, clyring
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.9, 0.9.0.1, 0.9.0.2, 0.9.0.3, 0.9.0.4, 0.9.1.0, 0.9.1.1, 0.9.1.2, 0.9.1.3, 0.9.1.4, 0.9.1.5, 0.9.1.6, 0.9.1.7, 0.9.1.8, 0.9.1.9, 0.9.1.10, 0.9.2.0, 0.9.2.1, 0.10.0.0, 0.10.0.1, 0.10.0.2, 0.10.2.0, 0.10.4.0, 0.10.4.1, 0.10.6.0, 0.10.8.0, 0.10.8.1, 0.10.8.2, 0.10.9.0, 0.10.10.0, 0.10.10.1, 0.10.12.0, 0.10.12.1, 0.11.0.0, 0.11.1.0, 0.11.2.0, 0.11.3.0, 0.11.3.1, 0.11.4.0, 0.11.5.0, 0.11.5.1, 0.11.5.2, 0.11.5.3, 0.11.5.4, 0.12.0.0, 0.12.0.1, 0.12.0.2, 0.12.1.0, 0.12.2.0 |
---|---|
Dependencies | base (>=3 && <4.15), deepseq (>=1.1 && <1.4), ghc-prim [details] |
Tested with | ghc ==7.2.1, ghc ==7.0.2, ghc ==6.12.3, ghc ==6.10.4, ghc ==6.8.2 |
License | BSD-3-Clause |
Copyright | Copyright (c) Don Stewart 2005-2009, (c) Duncan Coutts 2006-2011, (c) David Roundy 2003-2005, (c) Jasper Van der Jeugt 2010, (c) Simon Meier 2010-2011. |
Author | Don Stewart, Duncan Coutts |
Maintainer | Don Stewart <dons00@gmail.com>, Duncan Coutts <duncan@community.haskell.org> |
Revised | Revision 3 made by sjakobi at 2020-09-11T20:53:59Z |
Category | Data |
Bug tracker | dons00@gmail.com, duncan@community.haskell.org |
Source repo | head: darcs get http://darcs.haskell.org/bytestring/ |
Uploaded | by DuncanCoutts at 2012-09-20T09:20:40Z |
Distributions | Arch:0.11.4.0, Fedora:0.11.4.0 |
Reverse Dependencies | 6136 direct, 8865 indirect [details] |
Downloads | 119725 total (718 in the last 30 days) |
Rating | 2.75 (votes: 20) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Successful builds reported [all 1 reports] |