bits

Various bit twiddling and bitwise serialization primitives

http://github.com/ekmett/bits

Version on this page:0.5.1@rev:2
LTS Haskell 22.13:0.6@rev:1
Stackage Nightly 2024-03-14:0.6@rev:1
Latest on Hackage:0.6@rev:1

See all snapshots bits appears in

BSD-3-Clause licensed by Edward A. Kmett
Maintained by Edward A. Kmett
This version can be pinned in stack with:bits-0.5.1@sha256:2fde2b4da34eabb44d2c91182fdd7e65275e906f9ee11fdc0dd9a9defd4e40b0,1861

Module documentation for 0.5.1

bits

Hackage Build Status

This package provides a number of tools that are useful for dealing with files or data on a bitwise basis.

Contact Information

Contributions and bug reports are welcome!

Please feel free to contact me through github or on the #haskell IRC channel on irc.freenode.net.

-Edward Kmett

Changes

0.5.1

  • Fix off-by-one error in putUnaligned
  • Revamp Setup.hs to use cabal-doctest. This makes it build with Cabal-1.25, and makes the doctests work with cabal new-build and sandboxes.

0.5

  • ghc 8 support
  • Fixed doctests

0.4

  • Embrace FiniteBits from GHC 7.8.3 now that a platform has shipped with it.

0.3.3

  • Fixed dependencies on old busted versions

0.3.2

  • Bug fix for getBit

0.3.1

  • Fixed dependency bounds

0.3

  • Support for bytes 0.8

0.2.1

  • Claim to be Trustworthy

0.2

  • Crippled to work with bytes 0.7, so we can work with binary >= 0.6.

0.1

  • Repository initialized