Using hugsffi

Ross Paterson ross at soi.city.ac.uk
Wed Apr 26 12:35:01 EDT 2006


On Wed, Apr 26, 2006 at 05:29:57PM +0100, Neil Mitchell wrote:
> ffihugs test.hs test.c
> 
> And before compiling hugs has clobbered test.c, and removed my code
> from it. This gives a link error, since test is undefined.
> 
> Is this how ffihugs is supposed to work? Should my code be going somewhere else?

It generates Foo.c from Foo.hs, so yes, you need to call your C file
something else.  I'll update the docs, as the example given there
fails on a case-insensitive filesystem.



More information about the Cvs-hugs mailing list