From 7c8d1d5aa2e28ee59b9a8340c3d05ec7c467f6da Mon Sep 17 00:00:00 2001 From: hellojukay Date: Thu, 25 Nov 2021 19:20:05 +0800 Subject: [PATCH] ocaml: add example to run script with modules (#7478) --- pages/common/ocaml.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/ocaml.md b/pages/common/ocaml.md index 311aef7d7..871b7cfc7 100644 --- a/pages/common/ocaml.md +++ b/pages/common/ocaml.md @@ -11,3 +11,7 @@ - Read OCaml commands from a file and execute them: `ocaml {{path/to/file.ml}}` + +- Run OCaml script with modules: + +`ocaml {{module1}} {{module2}} {{path/to/file.ml}}`