[Haskell-cafe] Extending GHCi

Brandon Moore brandon_m_moore at yahoo.com
Sat Feb 5 04:36:58 CET 2011


>Hi,
>I am looking for a way to extend GHCI such that I can do something like this
>
>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?


What part of that doesn't already work? You can forkIO threads in GHCi,
you can listen on the network. If you have written the server so it can be
controlled from another thread, you can run those controlling functions
at the prompt while the server is working.

Brandon


      



More information about the Haskell-Cafe mailing list