> I was expecting something like > > foreign import ccall unsafe "static ncurses.h ERR" cERR :: CInt > > to allow me to access the value of ERR (a #define) as cERR.
In case you're wondering _why_ this doesn't work, it's because we'd like to be able to implement the ffi by dlopening a bunch of .o, .a and .so files and looking up symbols in them - with no C compiler anywhere in the picture. IIRC, this is how ghci worked at one stage - not sure if it still does. -- Alastair Reid [EMAIL PROTECTED] http://www.reid-consulting-uk.ltd.uk/alastair/ _______________________________________________ FFI mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/ffi