Use whatever tool you feel comfortable with and does the job for you, would be my suggestion. But, HDirect isn't solely based around IDL as a specification language, it processes C header files too (you can specify IDL attributes separately from the header file declarations, if needed.) Supports both CPP GNUisms and MSisms. --sigbjorn ----- Original Message ----- From: "Alastair Reid" <reid@cs.utah.edu> To: "Conal Elliott" <conal@microsoft.com>; "Doug Landauer (by way of Hans Aberg)" <landauer@scruznet.com>; "Hugs Bugs" <hugs-bugs@haskell.org>; "Sigbjorn Finne (E-mail)" <sigbjorn_finne@hotmail.com> Sent: Friday, December 08, 2000 05:36 Subject: RE: Hugs on Mac with CW6 ? ... and Haskell Graphics Lib?
I'm surprised at the preference of GreenCard over H/Direct. H/Direct was designed as an evolution of GreenCard based on experience with it, and has a strong foundation, as described in ICFP '98.
Perhaps I should admit a certain bias: GreenCard is partly my creation so I have a soft spot for it...
H/Direct would be the tool of choice if you happen to have IDL descriptions of the Mac graphical API. Given Microsoft's interest in the Mac, it is possible that these already exist.
Lacking an IDL description, my tool of choice would be to use the FFI directly and use a suitable ffi library to take care of the tedium (and/or to use c2hs) GreenCard would probably never have come into existence if the current ffi specification had already existed.
-- Alastair Reid