The spool package
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]
|Dependencies||base (>=3 && <5), bytestring (>=0.9), vector (>=0.7) [details]|
|Author||Keegan McAllister <email@example.com>|
|Maintainer||Keegan McAllister <firstname.lastname@example.org>|
|Source repository||head: git clone git://github.com/kmcallister/spool.git|
|Uploaded||Thu Sep 15 03:44:31 UTC 2011 by KeeganMcAllister|
|Distributions||LTSHaskell:0.1, NixOS:0.1, Stackage:0.1, Tumbleweed:0.1|
|Downloads||2135 total (71 in the last 30 days)|
|Status||Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI
For package maintainers and hackage trustees