Essentials of Standard ML Modules (1996) [pdf]
citeseerx.ist.psu.edu
citeseerx.ist.psu.edu
But I've had a hard time finding SML or OCaml projects that advertise this as a benefit. Does anyone know of a project that's achieved this? Maybe many do, but don't state it that way explicitly?
It is perhaps the reason to invest time in OCaml or Standard ML. But it requires a compiler which can reap the benefit as well. Newer versions of OCaml, with flambda as a backend, also help with this and gives you some of the advantages of full-module-expansion.
In practice, any decently sized OCaml or Standard ML program written by someone fluent in the module system would be an example project. Unfortunately, most of these I know about doesn't live in the Open Source world where I can just point to them.
(Disclaimer: I was involved somewhat with MLton)
Mirage has already been cited, see also [1]. Another example is ocamlgraph [2]. I have an old reddit post that attempted to make a list [3].
[1]: https://mirage.io/blog/introducing-functoria
[2]: http://ocamlgraph.lri.fr/index.en.html
[3]: https://dd.reddit.com/r/ocaml/comments/364vqg/examples_of_oc...
https://www.fun-mooc.fr/courses/parisdiderot/56002S02/sessio...
It's a PDF with lots of figures / code listings so copy/paste isn't really possible.