bitvec: Unboxed bit vectors

[ bit-vectors, data, library, public-domain ] [ Propose Tags ]

Bit vectors library for Haskell. The current vector package represents unboxed arrays of Bool allocating one byte per boolean, which might be considered wasteful. This library provides a newtype wrapper Bit and a custom instance of unboxed Vector, which packs booleans densely. It is a time-memory tradeoff: 8x less memory footprint at the price of moderate performance penalty (mostly, for random writes).

Versions [faq] 0.1,,,,, (info)
Change log
Dependencies base (>=4.8 && <5), primitive, vector (>=0.8) [details]
License LicenseRef-PublicDomain
Author James Cook <>, Andrew Lelechenko <>
Maintainer Andrew Lelechenko <>
Category Data, Bit Vectors
Home page
Source repo head: git clone git://
Uploaded by Bodigrim at Thu Apr 4 19:07:28 UTC 2019
Distributions NixOS:, Stackage:
Downloads 1846 total (171 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-04-04 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees