Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] how to use a module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Neel Krishnaswami <neelk@a...>
Subject: Re: Ledit (was Re: [Caml-list] how to use a module)
Matt Gushee writes:
> 
> Okay, then, I have some questions about ledit:
> 
>   How do you use it? I have actually tried ledit 2 or 3 times, but if
>     I invoke the 'ledit' executable that is created, e.g.
> 
>       $ ./ledit
> 
>     I get ... something ... some sort of shell-like environment, I
>     guess. But all it does is echo whatever I type. And when I read your
>     post, I downloaded it again to be sure, but the same thing happened
>     again. I also tried making a custom toplevel with ledit, but the
>     result seems to be identical to the plain ledit executable.

Do this

  $ ledit ocaml

in order to get line editing in the ocaml toplevel. The really cool
thing about ledit is that it adds line editing to *any* program.

-- 
Neel Krishnaswami
neelk@alum.mit.edu

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners