Package0.12.2.0Data
bytestring
Fast, compact, strict and lazy byte strings with a list interface
- Version0.12.2.0
- CategoryData
- LicenceBSD-3-Clause
- AuthorDon Stewart, Duncan Coutts
- MaintainerHaskell Bytestring Team <andrew.lelechenko@gmail.com>, Core Libraries Committee
- Homepagegithub.com/haskell/bytestring
- Pinned bywith GHC
- Sourcehackage.haskell.org/package/bytestring-0.12.2.0
Modules
15 modules- Data.ByteString117A time- and space-efficient implementation of byte vectors using
- Data.ByteString.Builder61Builders are used to efficiently construct sequences of bytes from
- Data.ByteString.Builder.Extra26Extra functions for creating and executing Builders. They are intended
- Data.ByteString.Builder.Prim77This module provides Builder primitives, which are lower level building
- Data.ByteString.Builder.RealFloat9Floating point formatting for Bytestring.Builder This module primarily exposes floatDec and doubleDec which do the
- Data.ByteString.Char8133Manipulate ByteStrings using Char operations. All Chars will be
- Data.ByteString.Lazy112A time and space-efficient implementation of lazy byte vectors
- Data.ByteString.Lazy.Char8127Manipulate lazy ByteStrings using Char operations. All Chars will
- Data.ByteString.Short74A compact representation suitable for storing short byte strings in memory. In typical use cases it can be imported alongside Data.ByteSt…
- Data.ByteString.Unsafe17A module containing unsafe ByteString operations. While these functions have a stable API and you may use these functions in
Internal modules · 5
- Data.ByteString.Builder.Internal51Warning:* this module is internal. If you find that you need it then please
- Data.ByteString.Builder.Prim.Internal24Warning:* this module is internal. If you find that you need it please
- Data.ByteString.Internal60A module containing semi-public ByteString internals. This exposes the
- Data.ByteString.Lazy.Internal16A module containing semi-public ByteString internals. This exposes
- Data.ByteString.Short.Internal77Internal representation of ShortByteString
Description
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:
Strict ByteStrings 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).
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 be converted to or from a ByteString. It is suitable for keeping many short strings in memory, especially long-term, without incurring any possible heap fragmentation costs.
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
Depends on
4 packages- base-4.20.2.0with GHC
- deepseq-1.5.0.0with GHC
- ghc-prim-0.12.0with GHC
- template-haskell-2.22.0.0with GHC
Used by in this set · 404
- Agda-2.7.0.1
- Cabal-3.12.1.0
- Cabal-syntax-3.12.1.0
- HTTP-4000.4.1
- HsOpenSSL-0.11.7.10
- HsYAML-0.2.1.4
- JuicyPixels-3.3.8
- ListLike-4.7.8.4
- OpenGLRaw-3.3.4.1
- PyF-0.11.3.0
- RSA-2.4.1
- SHA-1.6.4.4
- aeson-2.2.3.0
- aeson-pretty-0.8.10
- aeson-yaml-1.1.0.1
- appar-0.1.8
- asn1-encoding-0.9.6
- asn1-parse-0.9.5
- asn1-types-0.3.4
- atomic-write-0.2.1.1
- attoparsec-0.14.4
- attoparsec-aeson-2.2.2.0
- attoparsec-binary-0.2
- authenticate-oauth-1.7
- autodocodec-0.5.0.0
- autodocodec-servant-multipart-0.0.0.2
- autodocodec-yaml-0.4.0.2
- base16-1.0
- base16-bytestring-1.0.2.0
- base32-0.4
- base58-bytestring-0.1.0
- base64-1.0
- base64-bytestring-1.2.1.0
- base64-bytestring-type-1.0.1
- bech32-1.1.7
- binary-0.8.9.3
- binary-parser-0.5.7.6
- bitvec-1.1.5.0
- blaze-builder-0.4.4.1
- blaze-html-0.9.2.0
- blaze-markup-0.8.3.0
- blaze-textual-0.2.3.1
- brick-2.10
- bsb-http-chunked-0.0.0.4
- byteable-0.1.1
- bytebuild-0.3.16.2
- bytes-0.17.4
- byteslice-0.2.13.2
- bytesmith-0.3.11.1
- bytestring-lexing-0.5.0.15
- bytestring-strict-builder-0.4.5.7
- bytestring-tree-builder-0.2.7.12
- cabal-install-3.12.1.0
- cabal-install-solver-3.12.1.0
- cabal2nix-2.20.1
- canonical-json-0.6.0.1
- case-insensitive-1.2.1.0
- cassava-0.5.3.2
- cassava-megaparsec-2.1.1
- cborg-0.2.10.0
- cereal-0.5.8.3
- cereal-vector-0.2.0.1
- charset-0.3.12
- chronos-1.1.6.1
- citeproc-0.8.1
- clientsession-0.9.3.0
- cmark-gfm-0.2.6
- colourista-0.1.0.2
- commonmark-0.2.6
- compact-0.2.0.0
- concise-0.1.0.1
- conduit-1.3.6.1
- conduit-extra-1.3.8
- cookie-0.5.1
- criterion-1.6.4.0
- crypto-api-0.13.3
- crypto-api-tests-0.3
- crypto-token-0.1.2
- cryptohash-0.11.9
- cryptohash-md5-0.11.101.0
- cryptohash-sha1-0.11.101.0
- cryptohash-sha256-0.11.102.1
- crypton-1.0.4
- crypton-connection-0.4.5
- crypton-socks-0.6.2
- crypton-x509-1.7.7
- crypton-x509-store-1.6.11
- crypton-x509-system-1.6.7
- crypton-x509-validation-1.6.14
- cryptonite-0.30
- cryptonite-conduit-0.2.2
- data-serializer-0.3.5
- data-textual-0.3.0.3
- dbus-1.4.1
- deferred-folds-0.9.18.6
- dhall-1.42.3
- digest-0.0.2.1
- direct-sqlite-2.3.29
- distribution-nixpkgs-1.7.1.1
- djot-0.1.2
- dns-4.2.0
- ech-config-0.0.1
- ed25519-0.0.5.0
- effectful-2.3.0.0
- email-validate-2.3.2.21
- entropy-0.4.1.11
- fast-logger-3.2.6
- file-embed-0.0.16.0
- file-io-0.1.5
- filemanip-0.3.6.3
- filepath-1.5.4.0
- fmt-0.6.3.0
- foldl-1.4.18
- genvalidity-bytestring-1.0.0.1
- genvalidity-hspec-aeson-1.0.0.0
- genvalidity-sydtest-aeson-1.0.0.0
- ghc-9.10.3
- ghc-boot-9.10.3
- ghc-compact-0.1.0.0
- ghc-trace-events-0.1.2.9
- ghci-9.10.3
- githash-0.1.7.0
- grapesy-1.1.1
- graphviz-2999.20.2.0
- grpc-spec-1.0.0
- hackage-db-2.1.3
- hackage-security-0.6.3.2
- hashable-1.4.7.0
- haskeline-0.8.2.1
- hdaemonize-0.5.7
- hedgehog-1.7
- hedis-0.15.2
- hex-text-0.1.0.9
- hoauth2-2.14.3
- hoauth2-providers-0.8.0
- hoogle-5.0.18.4
- hopenssl-2.2.5
- horizon-gen-nix-0.12.0
- horizon-spec-pretty-0.1.2
- hosc-0.20
- hpack-0.38.2
- hpke-0.0.0
- hslogger-1.3.2.0
- hslua-2.3.1
- hslua-aeson-2.3.1
- hslua-classes-2.3.1
- hslua-core-2.3.2
- hslua-list-1.1.1
- hslua-marshalling-2.3.1
- hslua-objectorientation-2.3.1
- hspec-attoparsec-0.1.0.2
- hspec-golden-aeson-0.9.0.0
- hspec-wai-0.11.1
- html-conduit-1.3.2.2
- http-api-data-0.6.1
- http-client-0.7.19
- http-client-tls-0.3.6.4
- http-common-0.8.3.4
- http-conduit-2.3.9.1
- http-date-0.0.11
- http-media-0.8.1.1
- http-semantics-0.3.0
- http-streams-0.8.9.9
- http-types-0.12.4
- http2-5.3.10
- http2-tls-0.4.5
- hw-prim-0.6.3.2
- hxt-9.3.1.22
- hxt-regex-xmlschema-9.2.0.7
- inline-c-0.9.1.10
- integer-conversion-0.1.1
- io-streams-1.5.2.2
- io-streams-haproxy-1.0.1.0
- iproute-1.7.15
- ipynb-0.2
- isomorphism-class-0.1.0.12
- jose-0.11
- jose-jwt-0.10.0
- katip-0.8.8.0
- language-c-0.9.3
- lens-5.3.5
- lens-aeson-1.2.3
- libsystemd-journal-1.4.5.1
- libxml-0.1.1
- libyaml-0.1.4
- log-base-0.12.0.1
- lucid-2.11.20230408
- megaparsec-9.7.0
- memory-0.18.0
- microlens-aeson-2.5.2
- microlens-ghc-0.4.14.3
- mime-mail-0.5.1
- mime-types-0.1.2.0
- mmap-0.5.9
- mockery-0.3.5
- modern-uri-0.3.6.0
- monad-logger-0.3.42
- mono-traversable-1.0.21.0
- monoid-subclasses-1.2.5.1
- murmur-hash-0.1.0.11
- network-3.2.8.0
- network-byte-order-0.1.7
- network-conduit-tls-1.4.0
- network-run-0.4.4
- nothunks-0.3.1
- openapi3-3.2.4
- openssl-streams-1.2.3.0
- opentelemetry-0.8.0
- optics-extra-0.4.2.1
- optparse-generic-1.5.2
- os-string-2.0.7
- pager-0.1.1.0
- pandoc-lua-marshal-0.2.7
- pandoc-types-1.23.1
- parsec-3.1.18.0
- password-3.0.4.0
- password-types-1.0.0.0
- pcg-random-0.1.4.0
- pcre-heavy-1.0.0.3
- pcre-light-0.4.1.3
- pem-0.2.4
- persistent-2.14.6.3
- persistent-postgresql-2.13.6.2
- persistent-sqlite-2.13.3.0
- persistent-test-2.13.1.3
- pg-entity-0.0.4.4
- pg-transact-0.3.2.0
- pgp-wordlist-0.1.0.3
- pipes-attoparsec-0.6.0
- pipes-bytestring-2.1.7
- polyparse-1.13
- postgres-options-0.2.2.0
- postgresql-binary-0.13.1.3
- postgresql-libpq-0.11.0.0
- postgresql-migration-0.2.1.8
- postgresql-simple-0.7.0.0
- postgresql-simple-migration-0.1.15.0
- postgresql-syntax-0.4.1.1
- pretty-hex-1.1
- primitive-unlifted-2.1.0.0
- process-extras-0.7.4
- procex-0.3.3
- prometheus-client-1.1.1
- proto-lens-0.7.1.5
- proto-lens-setup-0.4.0.9
- pureMD5-2.1.4
- qrcode-core-0.9.9
- qrcode-juicypixels-0.8.5
- quickcheck-instances-0.3.33
- quickcheck-text-0.1.2.1
- random-1.2.1.3
- random-bytestring-0.1.4
- raven-haskell-0.1.4.1
- readable-0.3.1
- rebase-1.21.2
- recv-0.1.1
- reducers-3.12.5
- refined-0.8.2
- regex-1.1.0.2
- regex-base-0.94.0.3
- regex-pcre-builtin-0.95.2.3.8.44
- regex-posix-0.96.0.2
- regex-tdfa-1.3.2.5
- relude-1.2.0.0
- replace-megaparsec-1.5.0.1
- req-3.13.3
- resolv-0.2.0.3
- rio-0.1.22.0
- rvar-0.3.0.2
- safe-coloured-text-0.3.0.2
- say-0.1.0.1
- scanner-0.3.1
- scientific-0.3.8.0
- scotty-0.22
- sdl2-2.5.5.0
- sdl2-image-2.1.0.0
- sdl2-mixer-1.2.0.0
- sdl2-ttf-2.1.3
- selda-0.5.2.1
- serialise-0.2.6.1
- servant-0.20.2
- servant-auth-client-0.4.2.0
- servant-auth-server-0.4.9.0
- servant-client-0.20.2
- servant-client-core-0.20.2
- servant-docs-0.13.1
- servant-multipart-0.12.1
- servant-multipart-api-0.12.1
- servant-openapi3-2.0.1.6
- servant-server-0.20.2
- servant-static-th-1.0.0.0
- servant-websockets-2.0.0
- shake-0.19.8
- shakespeare-2.1.0.1
- shelly-1.12.1
- simple-sendfile-0.2.32
- skein-1.0.9.4
- skylighting-core-0.14.1.2
- snap-core-1.0.5.1
- snap-server-1.1.2.1
- snappy-0.2.0.2
- snappy-c-0.1.1
- snappy-framing-0.1.2
- snappy-lazy-0.1.0.0
- socks-0.6.1
- sourcemap-0.1.7
- special-values-0.1.0.0
- sqlite-simple-0.4.19.0
- stache-2.3.4
- store-0.7.20
- store-core-0.4.4.7
- streaming-binary-0.3.0.1
- streaming-bytestring-0.3.2
- streaming-commons-0.2.3.0
- strict-0.5.1
- string-conv-0.2.0
- string-conversions-0.4.0.1
- stringsearch-0.3.6.6
- stripeapi-3.0.0.0
- sundown-0.6
- svg-builder-0.1.1
- swagger2-2.8.9
- sydtest-0.22.0.0
- system-fileio-0.3.16.6
- system-filepath-0.4.14.1
- tagsoup-0.14.8
- tasty-golden-2.3.5
- tasty-hslua-1.1.1
- tasty-kat-0.0.3
- tasty-lua-1.1.1
- tasty-silver-3.3.2.1
- tasty-wai-0.1.2.0
- text-2.1.3
- text-builder-0.6.7.2
- text-builder-dev-0.3.4.2
- text-builder-linear-0.1.2
- text-conversions-0.3.1.1
- text-display-0.0.5.2
- text-icu-0.8.0.5
- text-latin1-0.3.1
- text-printer-0.5.0.2
- text-short-0.1.6
- th-lift-instances-0.1.20
- th-utilities-0.2.5.2
- tidal-1.9.5
- tls-2.1.6
- tls-session-manager-0.0.8
- tmp-postgres-1.35.0.0
- tomland-1.3.3.3
- tree-diff-0.3.4
- trifecta-2.1.4
- turtle-1.6.2
- typed-process-0.2.13.0
- typed-process-effectful-1.0.0.1
- typst-0.5.0.3
- unicode-collation-0.1.3.6
- unicode-transforms-0.4.0.1
- unix-2.8.7.0
- unix-bytestring-0.4.0.1
- unix-time-0.4.17
- unlifted-0.2.2.0
- unliftio-0.2.25.1
- uri-bytestring-0.4.0.0
- uri-bytestring-aeson-0.1.0.8
- uri-encode-1.5.0.7
- utf8-string-1.0.2
- uuid-1.3.16
- uuid-types-1.0.6
- validity-bytestring-0.4.1.1
- validity-text-0.3.1.3
- vcr-0.1.0
- vector-algorithms-0.9.1.0
- vty-6.5
- vty-unix-0.2.0.0
- wai-3.2.4
- wai-app-static-3.1.9
- wai-conduit-3.0.0.4
- wai-extra-3.1.16
- wai-log-0.4.0.1
- wai-logger-2.5.0
- wai-middleware-prometheus-1.0.0.1
- wai-middleware-static-0.9.2
- wai-websockets-3.0.1.2
- warp-3.4.9
- warp-tls-3.4.13
- webdriver-0.12.0.1
- websockets-0.13.0.0
- wreq-0.5.4.3
- wuss-2.0.1.9
- x509-1.7.7
- x509-store-1.6.9
- x509-system-1.6.7
- x509-validation-1.6.12
- xml-1.3.14
- xml-conduit-1.10.0.0
- xmlgen-0.6.2.2
- yaml-0.11.11.2
- yesod-1.6.2.1
- yesod-core-1.6.26.0
- yesod-form-1.7.9
- yesod-test-1.6.19
- zip-archive-0.4.3.2
- zlib-0.7.1.0
- zlib-bindings-0.1.1.5