Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Toplevel: please add a primitive to compile a file test.ml as a module Test. #5825
Original bug ID: 5825
This bugs is a follow-up to a thread of the caml-list:
While testing/debugging some code with the OCaml toplevel, one may want to "#load" a module while keeping access to functions hidden by a .mli
The primitive "#use" already allow this, but when loading multiple files the "module-as-namespace" paradigm is not usable.
Here is a small patch that introduces a new primitive: #mod_use "file.ml"