Binding to inline functions

John Meacham john at
Tue Sep 1 04:57:50 EDT 2009

Can't hsc2hs already do this?

#def char w_some_inline_function(char foo) { return some_inline_function(foo); }
foreign import ccall "w_some_inline_function" some_inline_function :: CChar -> CChar

I have certainly used this idiom on several occasions to work around the


John Meacham - ⑆⑆john⑈ -

More information about the Libraries mailing list