bitvec: Unboxed vectors of bits / dense IntSets

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

Another bit-array library for Haskell. This one defines a Bit type (which is an instance of all the "expected" classes, including numeric ones) and makes that type an instance of `Data.Vector.Unboxed. Unbox`, so we get a lot of nice APIs for free. Bool is already an unboxable type, but the current unboxed Vector implementation packs each bit as a byte. This one packs 8 bits per byte, as expected (UArray from the array package also uses one bit per Bool).

In addition to the Vector interface, there are several high-level operations and some low-level ones suitable for building new bulk operations by viewing the bit-vector as a word vector.

Versions 0.1,,
Dependencies base (>=3 && <5), primitive, vector (>=0.8) [details]
License LicenseRef-PublicDomain
Author James Cook <>
Maintainer James Cook <>
Category Data, Bit Vectors
Home page
Source repo head: git clone git://
Uploaded by JamesCook at Sat May 14 22:28:24 UTC 2016
Distributions NixOS:
Downloads 1452 total (50 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 2016-10-27 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees