Package Info


Convert between ByteString and Vector.Storable without copying


This library allows conversion between the types from 'Data.ByteString' (package 'bytestring') and 'Data.Vector.Storable' (package 'vector') without copying the underlying data. This is useful, for example, when 'ByteString' IO produces or consumes vectors of numbers in native byte order.

This trick relies on the fact that 'ByteString' and 'Vector' use their respective 'ForeignPtr's in compatible ways. It works with 'bytestring-' and 'vector-0.9' on GHC 7.0. It may break with future releases of these packages. Depending on this library should be seen as a way to document and standardize an existing hack, and not as an absolute guarantee of correct behavior.

License: BSD-3-Clause



Package Version Update ID Released Package Hub Version Platforms Subpackages
0.1-bp150.2.3 info GA Release 2018-08-01 15
  • AArch64
  • ghc-spool
  • ghc-spool-devel
0.1-bp150.2.7 info GA Release 2018-07-31 15
  • ppc64le
  • ghc-spool
  • ghc-spool-devel
0.1-bp150.2.6 info GA Release 2018-07-30 15
  • x86-64
  • ghc-spool
  • ghc-spool-devel