Binding to inline functions

Maurí­cio CA mauricio.antunes at gmail.com
Mon Aug 24 10:28:35 EDT 2009


>> I understand we can't use 'foreign import ccall'
>> to wrap inline C functions. Do you think it could
>> be possible to have an option in cabal to generate
>> such functions in an object file when #included in
>> a C file, in a compiler independent, portable way?

> It might be better to include this feature into hsc2hs and/or c2hs
> (which may in turn require some help from Cabal).

Do you imagine a nice way to include that in hsc2hs
or c2hs?

(Also: inline functions are exactly like normal functions,
except at compilation time. For those who just want to wrap
a few functions, isn't it too much to require them  to learn
a tool just to use them?)

Thanks,
Maurício



More information about the Libraries mailing list