Gray code encoder/decoder.

Latest on Hackage:0.3.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed by Sergey Astanin
Maintained by

Gray code is a binary numeral system where two successive numbers differ in only one bit.

This package allows to convert numbers to one of the possible Gray codes and back. Two binary representations of a number are supported: [Bool] and types of FiniteBits type class. FiniteBits is the default implementation.


0.3.1: revert API to be backwards compatible with 0.2.2, requires GHC >= 7.8
0.3: DON'T USE THIS VERSION. rely on total functions on `FiniteBits`, requires GHC >= 7.8
0.2.2: build on GHC 7.6, integrate tests with cabal build
0.2.1: `toList'` function
0.2: split `C.B.G.Bits` and `C.B.G.List` APIs
0.1: initial Hackage release
Depends on:
Used by 1 package:
comments powered byDisqus