This example demonstrates generating Haskell bindings for Botan, a cryptography library written in C++.
Install ccache on your system. For example, on NixOS:
nix-shell -p ccacheOr, for example, on Ubuntu:
apt-get install ccacheTODO: on Windows, use sccache instead
./generate-and-run.shThis script will:
- Build the botan-3 C++ library
- Generate Haskell bindings using
hs-bindgen - Create
cabal.project.localwith the necessary configuration - Build and run the example program