| .. | ||
| a.ml | ||
| b.ml | ||
| default.ml | ||
| dune | ||
| dune-project | ||
| README.md | ||
| run.t | ||
Using the mdx stanza, you can set mdx prelude which are used to evaluate
code in the toplevel environments before checking a document. To do that
you can set the prelude field of the stanza: (preludes <prelude_file> ...).
# x;;
- : int = 1
Different environment can have their own prelude. This is set using the
(env <env_name> <prelude_file>) syntax for the prelude field.
Here x and why are set in alt.ml.
# x + y;;
- : int = 11
# x + y;;
- : int = 21