This is a reference to the standard filenames and extensions used by various parts of the OCaml build system.
Note: There is an extended mailing list posting about filenames used by OCaml here.
The basic source, object and binary files, with comparisons to C programming:
Fooyou will find two files:
foo.mlis the implementation and
foo.mliis the interface or signature.
uTF8.mliwhich is the signature of a module called
*.cmi files are intermediate files which are compiled forms of the
.mli (interface or "header file").
To produce them, just compile the
ocamlc -c foo.mli