The spool package

[Tags: bsd3, library]

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 ForeignPtrs in compatible ways. It works with bytestring-0.9.1.10 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.


[Skip to ReadMe]

Properties

Version0.1
Change logNone available
Dependenciesbase (>=3 && <5), bytestring (>=0.9), vector (>=0.7) [details]
LicenseBSD3
AuthorKeegan McAllister <mcallister.keegan@gmail.com>
MaintainerKeegan McAllister <mcallister.keegan@gmail.com>
CategoryData Structures
Source repositoryhead: git clone git://github.com/kmcallister/spool.git
UploadedThu Sep 15 03:44:31 UTC 2011 by KeeganMcAllister
DistributionsNixOS:0.1
Downloads1801 total (8 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for spool-0.1

spool provides conversion between ByteString and Vector.Storable without
copying the underlying data.

Documentation is hosted at http://hackage.haskell.org/package/spool

To build the documentation yourself, run

  $ cabal configure && cabal haddock --hyperlink-source

This will produce HTML documentation under dist/doc/html/spool.