package odig

  1. Overview
  2. Docs

Abtract away the OCaml's Toploop API.

Toplevel directives

val add_inc : Fpath.t -> (unit, [ `Msg of string ]) Pervasives.result

add_inc dir add dir to the include path.

val rem_inc : Fpath.t -> (unit, [ `Msg of string ]) Pervasives.result

rem_inc dir remove dir from the include path.

val load_ml : Fpath.t -> (unit, [ `Msg of string ]) Pervasives.result

load_ml ml loads the source ml file.

val load_obj : Fpath.t -> (unit, [ `Msg of string ]) Pervasives.result

load_obj obj loads the cma or cmo file obj.

OCaml

Innovation. Community. Security.