Module Private.Top
Abstracts away the OCaml Toploop API.
Toplevel directives
val add_inc : string -> (unit, string) Stdlib.resultadd_inc diraddsdirto the include path.
val rem_inc : string -> (unit, string) Stdlib.resultrem_inc dirremovesdirfrom the include path.
val load_ml : string -> (unit, string) Stdlib.resultload_ml mlloads the source fileml.
val load_obj : string -> (unit, string) Stdlib.resultload_obj objloads the object fileobj.
Topdirs implementations
module type TOPDIRS = sig ... endThe type for Topdir module implementations.
val set_topdirs : is_nat:bool -> (module TOPDIRS) -> unitset_topdirs ~is_nat tsets the topdirs implementation totand indicates withis_natif thisocamlnat's implementation.