Efficient little-endian bit vector Haskell library
This package contains an efficient implementation of little-endian, immutable bit vectors. It implements most applicable typeclasses and also conversions to and from signed or unsigned numbers.
For an implementation of big-endian, immutable bit vectors, use the
For an implementation of little-endian, mutable bit vectors, use the
The test suite ensures that all typeclass instances are "lawful" and that data-structure–specific functionality is well defined.
TestSuite.hs file contains the specification. It can be run by invoking any of the following commands:
The benchmarks provide an empyrical check for the asymptotic complexity of data structure operations and also provide easy metrics for detecting performance regressions.
Benchmaks.hs file contains these metrics. It can be run by invoking any of the following commands:
*Note that all licence references and agreements mentioned in the bv-little README section above are relevant to that project's source code only.