Incremental Module

References:
JaneStreet GitHub - Incremental
JaneStreet GitHub - OPAM Repository

Setup Switch

I’ve found that Incremental does not install well with ocaml.5.1.1. I get errors with ppxlib 0.35.0 and sexplib v0.17.0 compile. ocaml.5.2.2 seems to function fine.

1opam update
2
3opam switch create incremental_ocaml_5_2_2 ocaml.5.2.2

Set the environment

1$(opam env --switch=incremental_ocaml_5_2_2)

Setup Jane Street Repository

1opam repo add janestreet-bleeding https://github.com/janestreet/opam-repository.git
2
3opam repo add janestreet-bleeding-external https://github.com/janestreet/opam-repository.git#external-packages

Update and Upgrade

1opam update
2opam upgrade

Update the shell environment

1eval $(opam env)