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]
Versions [RSS] [faq],
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 LTSHaskell:, NixOS:, Stackage:
Downloads 2825 total (175 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-02-08 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees


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.