The bits-extras package

[Tags: bsd3, library]

This package contains efficient implementations of high-level bit operations missing from Data.Bits. The implementation is based on GCC builtins, which translate to specialized instructions where available.

All operations in this package can also be (less efficiently) implemented in terms of Data.Bits operations.

Issues: A GCC-provided library, libgcc_s, is dynamically linked to provide software fallbacks on architectures without instructions corresponding to specific operations. This is currently only expected to work on Linux systems, and even there can lead to issues with GHCi's custom linker. A workaround for GHCi on a linux system: ln -s /lib/ /lib/

The current plan for broader support is to replace the libgcc dependency with built-in fallbacks in C or Haskell code. This needs to closely follow GCC's fall-back behaviour for each architecture. Alternative ideas would be appreciated.

Relevant Hackage tickets:


Versions0.1.0, 0.1.1, 0.1.2, 0.1.3
Change logNone available
Dependenciesbase (>=4 && <6) [details]
AuthorGabriel Wicke <>
MaintainerGabriel Wicke <>
Source repositoryhead: hg clone
UploadedMon Sep 6 11:11:41 UTC 2010 by GabrielWicke
Downloads1539 total (23 in last 30 days)
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]




Maintainers' corner

For package maintainers and hackage trustees