Hi,
I am looking for a way to extend GHCI such that I can do
something like this
$ ghci
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
Prelude>
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?
I am not sure that I understand you correctly, but ghci simulates the
IO monad, so what about: