This question comes up reasonably often, so let me point you to the answer by the creator of the language: What is the reason of separation of module implementation and signatures in OCaml? - #33 by xavierleroy
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Has there been a syntax proposed for combining .mli into .ml? | 27 | 1664 | September 3, 2024 | |
| OCaml real pain points | 112 | 4117 | November 26, 2025 | |
| Basic problem with Dune and .mli files | 5 | 716 | November 5, 2023 | |
| At what point do you start writing an .mli file? | 26 | 5098 | October 25, 2020 | |
| A more user-friendly dune | 28 | 981 | November 15, 2025 |