Hello Maurício, Sunday, July 12, 2009, 9:11:53 PM, you wrote:
> I did read that. It says I can use "#def" to insert > a C definition, but there are no examples of use, and I > could not find one. #def inline int signof(int x) {return x<0?-1:x>0?1:0;} foreign import ccall safe "" signof :: CInt -> CInt main = print (signof 33) compilation: hsc2hs tabi.hsc ghc --make tabi.hs tabi_hsc.c -- Best regards, Bulat mailto:bulat.zigans...@gmail.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe