Hi Kashyap,

What a fun project!  I was able to build and run on Windows (GHC 6.12.3 and TightVNC 1.4.4) with a few minor changes:

Remove from Chitra\Canvas.hs

import Network.Server
import Network.Socket

I think these are artifacts from a previous version and are not used.  For whatever reason getAddrInfo with the parameters given in RFB\Server.hs  returns some IPv6 address on my system.  Changing the second parameter from Nothing to (Just "127.0.0.1") made things work for me.

Attached is the Cabal file I used to build (it wasn't clear what license things are under so those fields are commented out).

Ryan Yates


On Thu, Feb 3, 2011 at 6:15 AM, C K Kashyap <ckkashyap@gmail.com> wrote:
Hi,
I've been working on a Haskell based platform independent graphics rendering
using VNC. I'd like it very much if you could take a look at it and give me
feedback. Using it is straight forward -

git clone git@github.com:ckkashyap/Chitra.git
cd Chitra
make
./Main 100 100 5900

Main starts off a vncserver listening on port 5900. A standard vncviewer can be
used to connect to 'localhost' and you can see a 100 x 100 screen. Clicking on
the screen will set the pixel on the click location.

What I eventually want to do is somehow integrate this piece with GHCI in such
a manner that one can use GHCI to draw things on the VNC buffer.

Regards,
Kashyap


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe