Is there an enhanced interpreter toploop for OCaml?

3.2k views Asked by At

Python has IPython.. does OCaml have anything similar?

I'd very much like to have command history, although other features would be nice too. I've read that I could get command history by running it in Emacs, but I don't use Emacs..

4

There are 4 answers

2
Mikael S On BEST ANSWER

rlwrap gives you readline features (history, editing commands, etc). Also, Findlib adds some functionality, see the quickstart for examples.

1
Çağdaş Bozman On

You can also use the online toplevel.

0
J D On

Use ledit ocaml with ledit.

2
Teresa Siegmantel On

There's utop! It has autocompletion, is emacs compatible and so on.