The bitwise package

[Tags:benchmark, bsd3, library, test]

Unboxed multidimensional bit packed Bool arrays with fast aggregate operations based on lifting Bool operations to bitwise operations.

There are many other bit packed structures out there, but none met all of these requirements:

  1. unboxed bit packed Bool array,

  2. multi-dimensional indexing,

  3. fast (de)serialization, or interoperable with foreign code,

  4. fast aggregate operations (fold, map, zip).

Quick tour of the bitwise library:

Lift boolean operations on Bool to bitwise operations on Data.Bits.Bits.
Immutable bit arrays.
Mutable bit arrays in Control.Monad.ST.ST.
Mutable bit arrays in IO.
Portable bitmap monochrome 2D image format.

Very rough performance benchmarks:

[Skip to Readme]


Versions 0.1,,, 0.1.1,
Dependencies array, base (>=2 && <4.10), bytestring [details]
License BSD3
Copyright (c) 2012,2016 Claude Heiland-Allen
Author Claude Heiland-Allen
Stability Unknown
Category Data, Data Structures, Bit Vectors
Home page
Source repository head: git clone
this: git clone v0.1.1.1)
Uploaded Thu May 26 10:59:49 UTC 2016 by ClaudeHeilandAllen
Distributions NixOS:
Downloads 1277 total (14 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2016-05-26 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for bitwise

Readme for bitwise-

Interactive interpreted usage without having installed first
requires adding a search path for the respective environment:

  hugs -98 -P:src:hugs98
  ghci-7.0.4 -isrc:ghc70
  ghci-7.4.1 -isrc:ghc74

ghc < 7 has not been tested, reports welcome.