Skip to content
An OCaml toplevel (REPL) upgrade
OCaml C
Branch: master
Clone or download

down — An OCaml toplevel (REPL) upgrade


Down is an unintrusive user experience upgrade for the ocaml toplevel (REPL).

Simply load the zero dependency Down library in the ocaml toplevel and you get line edition, history, session support and identifier completion and documentation (courtesy of ocp-index).

Add this to your ~/.ocamlinit:

#use ""


Down is distributed under the ISC license.



down can be installed with opam:

opam install down

If you don't use opam consult the opam file for build instructions.

Quick start

Simply run ocaml and load the library:

> ocaml
# #use "";;
Down loaded. Type () for more info.
# List.con^t
  List.cons : 'a -> 'a list -> 'a list
  List.concat : 'a list list -> 'a list
# List.con

You can add this #use "" invocation to your ~/.ocamlinit file.

For ocamlnat you will likely have to invoke it with -noinit and you must issue #use "down.nattop".


The manual can be consulted online or via odig doc down.

You can’t perform that action at this time.