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.

BSD3 licensed by Sergey Astanin
Maintained by s.astanin@gmail.com

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.

Changes

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