Skip to content

Repository files navigation

LibBF bindings for Haskell

This repository defines a high-level Haskell bindings for LibBF, a C library for handling arbitrary-precision floating-point numbers. These bindings are reasonably portable (with the caveats listed in the "Limitations" section) and have been tested to work on Linux, macOS, and Windows.

LibBF version

By default, this library builds a copy of the LibBF source code that is bundled with the source distribution, which means that you can build this library without needing to install any external C dependencies. If you wish, you may also build this library with the +system-libbf flag enabled to instead link against your operating system's version of LibBF.

The most recent release on the LibBF website dates back to 2020, which does not support non-x86 architectures (e.g., AArch64). For this reason, we instead bundle a more recent of LibBF (written in 2021) that is bundled with the quickjs library. We may also choose to backport other critical bugfixes if they are needed.

Limitations

  • Not all LibBF operations are currently exposed. For instance, we do not yet expose operations on decimal floating-point numbers (bfdec_t).

About

Haskell bindings to libBF

Resources

Stars

4 stars

Watchers

13 watching

Forks

Releases

Packages

Used by

Contributors

Languages