Mike Gunter <[EMAIL PROTECTED]> asks: > What's the status of GreenCard for Hugs? GreenCard is working pretty reliably but the whole business of how to configure it (with all the cross-compilation alternatives) makes my brain hurt. I've put a snapshot of GreenCard, the Win32 interface and the beginnings of the Xlib interface in ftp://haskell.org/pub/haskell/hugs/ALPHA/green-card-971119.tgz It contains two subdirectories: GCLibs and fptools and should be unpacked in the same directory you unpacked Hugs in. Documentation is in fptools/green-card/doc - all the ideas are right but it's a little out of date. The best source of working examples is in GCLibs/Win32. You'll need to tweak the Makefiles in GCLibs and Xlib to suit your local system. The Makefiles assume you have GNU make - if you don't, you can always rewrite them. If you happen to have GHC installed, I highly recommend compiling GreenCard with ghc - it goes much faster. Note that the Makefile in fptools/green-card/src isn't enough to compile GreenCard. The best way forward is to delete the Makefile and write your own. I hope no-one's still wondering why it got put in the ALPHA subdirectory. Alastair ps We'd be most grateful if anyone feels like finishing off the Xlib interface. One place to start would be the the GreenCard 1 interface in hugs/src/Foreign in old Hugs releases. Look at the Win32 interface for ideas on how to deal with structs and callbacks.
