[Haskell-cafe] Extending GHCi

C K Kashyap ckkashyap at gmail.com
Fri Feb 4 12:36:42 CET 2011

I am looking for a way to extend GHCI such that I can do something like this

$ ghci
GHCi, version 6.12.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> startMyFunction

startMyFunction will do a forkIO and listen on a network port for
interaction with a remote process and will drop back to GHCI prompt where I
can invoke haskell functions that'll control the way the interaction with
the remote process occurs. Can this be done?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110204/35f1b784/attachment.htm>

More information about the Haskell-Cafe mailing list