FFI preprocessor for GHC

Jeremy Shaw jeremy.shaw at lindows.com
Thu Jan 15 09:40:11 EST 2004


One answer might be to not use a preprocessor at all. I found that I
could not understand what the preprocessers where actually doing until
I understood how to do it by hand. The nice thing about doing it by
hand, is it is probably the most portable, since it does not require
any preprocessor.

On the otherhand, there is nothing wrong with using a preprocessor,
and it can certainly save time. hsc2hs is included in the ghc source
tree, so that would probably be my first choice.

Jeremy Shaw.

At Thu, 15 Jan 2004 18:18:11 +0100,
Gour wrote:
> Hi!
> I'd like to create Haskell bindings for swisseph C library for calculating 
> ephemeris.
> Which preprocessor would be a suitable for ghc compiler with the ability to
> run the code both on Linux & Win32?
> Sincerely,
> Gour
> -- 
> Gour
> gour at mail.inet.hr
> Registered Linux User #278493
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list