Hardcaml can be installed with opam I recommend the following packages to get started This will install the core Hardcaml library a waveform viewer which is helpful for building tests and the hardcaml ppx To access the latest packages or the most up to date version you may want to try the Jane Street bleeding edge opam repository opam install hardcaml hardcaml_waveterm ppx_hardcaml opam repo add janestreet bleeding https github com janestreet opam repository git

Basic Usage

Hardcaml can be used with utop or another OCaml top level This provides a great environment to learn the API The following utop command makes things nicer to play with #require hardcaml open Hardcaml Bits #install_printer Bits pp

Dune

The following is an example Dune file for linking to Hardcaml library name my_hardcaml_lib libraries base hardcaml preprocess pps ppx_jane ppx_hardcaml