From: ross Date: Wed, 5 May 2004 12:00:10 +0000 (+0000) Subject: [project @ 2004-05-05 12:00:10 by ross] X-Git-Tag: Initial_conversion_from_CVS_complete~1875 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=2a538d224b533bc65ce1d8002cc1cbcec21ceb47;p=ghc-hetmet.git [project @ 2004-05-05 12:00:10 by ross] add a note about #def in hsc2hs --- diff --git a/ghc/docs/users_guide/utils.sgml b/ghc/docs/users_guide/utils.sgml index a0769b7..8d75b38 100644 --- a/ghc/docs/users_guide/utils.sgml +++ b/ghc/docs/users_guide/utils.sgml @@ -391,6 +391,15 @@ tags: inline, struct or typedef keyword must come just after def. + + A foreign import of a + C function may be inlined across a module boundary, + in which case you must arrange for the importing + module to #include the C header + file generated by hsc2hs (see + ). + For this reason we avoid using #def + in the libraries.