gray-code

Gray code encoder/decoder.

http://bitbucket.org/astanin/hs-gray-code

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 stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Sergey Astanin
Maintained by [email protected]

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.