bytestring-to-vector: Convert between ByteString and Vector.Storable without copying

[ bsd3, data-structures, library ] [ Propose Tags ]

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.

The conversion relies on the fact that ByteString and Vector use their respective ForeignPtrs in compatible ways.

This library is a fork of the spool package written by Keegan McAllister.

[Skip to Readme]


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],
Dependencies base (>=3 && <5), bytestring, vector [details]
License BSD-3-Clause
Author Keegan McAllister <>
Maintainer Sven Heyll <>
Category Data Structures
Home page
Source repo head: git clone git://
Uploaded by SvenHeyll at 2019-02-08T04:53:15Z
Distributions Arch:, Debian:, LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 7 direct, 8 indirect [details]
Downloads 5114 total (51 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-02-08 [all 1 reports]

Readme for bytestring-to-vector-

[back to package description]

Build Status


Platform dependent no-copy vector - bytestring conversion

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

This is a fork of spool.