LicenseRef-PublicDomain licensed by James Cook, Andrew Lelechenko
Maintained by Andrew Lelechenko
This version can be pinned in stack with:bitvec-0.2.0.0@sha256:b01419b2923cefa18aa6c289367e1ac892a4bcd0be726539f205d8341224281b,1922

Module documentation for 0.2.0.0

Depends on 3 packages(full list with versions):

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).

Changes

0.2.0.0

  • Remove hand-written ‘Num’, ‘Real’, ‘Integral’, ‘Bits’ instances.
  • Derive ‘Bits’ and ‘FiniteBits’ instances.
  • Expose ‘Bit’ constructor directly and remove ‘fromBool’ function.
  • Rename ‘toBool’ to ‘unBit’.

0.1.1.0

  • Fix bugs in MVector and Vector instances of Bit.
  • Speed up MVector and Vector instances of Bit.