[Haskell-cafe] Using Hint with a socket server

2010-06-17 Thread Tom Jordan
I'm trying to receive small segments of Haskell code over a socket, and be able to evaluate them in real time in GHCI. I've already downloaded Hint and have run the test code, and it's working great. I'm also using the socket server code from Ch.27 of Real World Haskell and that is working well

Re: [Haskell-cafe] Using Hint with a socket server

2010-06-17 Thread Daniel GorĂ­n
Hi Tom, There is probably more than one way to do this. Did you try using the package hint-server? [1] It has a very simple interface: you start a server and obtain a handle; then you can run an interpreter action using the handle. Something like this: runIn handle (interpret msg (as