> foreign import ccall "<gtk/gtk.h>:gtk_window_new" > windowNew :: CInt -> IO (Ptr Window) > > If the <.> are omitted in the include specification, it > corresponds to an #include"...". Don't forget you might need multiple includes, eg. <sys/types.h> & <sys/socket.h> for socket(), and ordering is important. Multiple includes could be separated by commas. I agree that adding the include spec to the foreign import declaration is a good idea because of the cross-module inlining issue (I'd forgotten about that). Marcin: I guess hsc2hs should have some magic to insert the include specs automatically :) Cheers, Simon _______________________________________________ FFI mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/ffi
- RE: Summary of current change suggestions Simon Marlow
- RE: Summary of current change suggestions Manuel M. T. Chakravarty
- RE: Summary of current change suggestions Alastair Reid
- RE: Summary of current change suggestio... Manuel M. T. Chakravarty
- RE: Summary of current change suggestions Simon Peyton-Jones
- RE: Summary of current change suggestions Marcin 'Qrczak' Kowalczyk
- RE: Summary of current change suggestions Simon Marlow
- RE: Summary of current change suggestions Marcin 'Qrczak' Kowalczyk
- RE: Summary of current change suggestions Manuel M. T. Chakravarty
- RE: Summary of current change suggestions Simon Marlow
- Re: Summary of current change suggestions Simon Marlow
- Re: Summary of current change suggestions Marcin 'Qrczak' Kowalczyk
- Re: Summary of current change suggestio... Fergus Henderson
- Re: Summary of current change sugge... Marcin 'Qrczak' Kowalczyk
- Re: Summary of current change s... Manuel M. T. Chakravarty
- RE: Summary of current change suggestions Simon Marlow
- RE: Summary of current change suggestions Marcin 'Qrczak' Kowalczyk
- Re: Summary of current change suggestions Fergus Henderson