Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Caml toplevel and readline
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] Caml toplevel and readline
From: John Max Skaller <>

> I find the ocaml top level 'ocaml' very clumbsy to use,
> compared with, say, Python's top level, because it
> doesn't understand line editing. Any chance of optionally
> building it with gnu_readline?

No. Gnu-readline is a well-known example of library released under the
GPL, which makes it incompatible with the caml toplevel, which is
covered by the QPL :-)

But there are plenty of external alternatives: using emacs, using
ocamlbrowser's shell, using ledit.
ledit is a tool written in camlp4 by Daniel de Raglaudre
which allows line editing on any program.
Linking the editing code of ledit with the toplevel might also be an

Bug reports:  FAQ:
To unsubscribe, mail  Archives: