[Haskell-cafe] Connecting to a running process (REPL)

John Meacham john at repetae.net
Tue Dec 6 19:41:52 EST 2005


On Tue, Dec 06, 2005 at 10:35:50AM +0000, Joel Reymont wrote:
> Is there a good standard way of supplying a read-eval prompt in a  
> program?

You might want to look at this module which is a program independent
read-eval prompt that I use for jhci. it is completely independent of
the rest of the compiler (like everything in the Util.* hierarchy) and
depends only on ghc provided libraries.

http://repetae.net/john/repos/jhc/Util/Interact.hs

for an example of its use see

http://repetae.net/john/repos/jhc/Interactive.hs

        John

-- 
John Meacham - ⑆repetae.net⑆john⑈ 


More information about the Haskell-Cafe mailing list