Re: Using hugsffi
Ross Paterson <[email protected]> Wed, 26 Apr 2006 17:35:01 +0100
| Newsgroups | gmane.comp.lang.haskell.cvs.hugs |
|---|---|
| Message-ID | <[email protected]> |
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.