FFI preprocessor for GHC
Per Larsson
per at L4i.se
Thu Jan 15 19:38:15 EST 2004
Hello,
I would instead suggest greencard as a good preprocessor. It is portable in
the sense that it outputs haskell code in accordance with the new FFI
specification. Also, it has an input format which, in my opinion, is easier
to learn and is better documented than hsc2hs. You can download the program
and manual at:
http://haskell.org/greencard/
Per Larsson
On Thursday 15 January 2004 18.40, Jeremy Shaw wrote:
> Hello,
>
> 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