How can I generate .mli files from .ml files?

This is all working really well now, just slightly differently. Just use the VSCode extension: GitHub - ocamllabs/vscode-ocaml-platform: Visual Studio Code extension for OCaml

The feature is called ‘Switch implementation/interface’. The naming is slightly misleading, it will generate a new file containing the interface for you if it doesn’t already exist.

3 Likes