The bytestring package

[Tags: bsd3, library]

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 ByteString 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:

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).

The Builder module provides an efficient way to build up ByteStrings in an ad-hoc way by repeated concatenation. This is ideal for fast serialisation or pretty printing.

There is also a ShortByteString type which has a lower memory overhead and can can be converted to or from a ByteString, but supports very few other operations. It is suitable for keeping many short strings in memory.

ByteStrings 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

Properties

Versions0.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
Dependenciesbase (>=4.2 && <5), deepseq (>=1.1 && <1.4), ghc-prim
LicenseBSD3
CopyrightCopyright (c) Don Stewart 2005-2009, (c) Duncan Coutts 2006-2013, (c) David Roundy 2003-2005, (c) Jasper Van der Jeugt 2010, (c) Simon Meier 2010-2013.
AuthorDon Stewart, Duncan Coutts
MaintainerDuncan Coutts <duncan@community.haskell.org>
CategoryData
Home pagehttps://github.com/haskell/bytestring
Bug trackerhttps://github.com/haskell/bytestring/issues
Source repositoryhead: git clone https://github.com/haskell/bytestring
this: git clone https://github.com/haskell/bytestring -b 0.10.4.x(tag 0.10.4.1)
UploadedSun Nov 9 23:44:14 UTC 2014 by DuncanCoutts
UpdatedMon Dec 22 07:54:31 UTC 2014 by HerbertValerioRiedel to revision 1
DistributionsFedora:0.10.0.2, Stackage:0.10.4.0
Downloads27711 total (1340 in last 30 days)
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Flags

NameDescriptionDefault
integer-simpleUse the simple integer library instead of GMPDisabled

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

Downloads

Maintainers' corner

For package maintainers and hackage trustees