Chapter 3. Packaging OCaml libraries

3.1. Creating Packages for OCaml Libraries

A package which provides an OCaml library called xxx should be split as follows:

Optionally, two other packages may be created:

It is recommended that libraries use the -pack option to pack all the modules provided by the library into one module. We don't think upstream libraries will be moving to this scheme anytime soon (unless we actively lobby for it) so this is just a recommendation for now.

It is recommended that each library package ships a META file in order to make the library usable via ocamlfind (see the Debian package ocaml-findlib). See Section 3.4 for more information on this.