FFI Definition

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Wed Apr 18 13:41:28 EDT 2001

Tue, 17 Apr 2001 18:05:48 +1000, Manuel M. T. Chakravarty <chak at cse.unsw.edu.au> pisze:

>   http://www.cse.unsw.edu.au/~chak/haskell/ffi.ps.gz

Some minor points:

In C int can't have 8 bits. It is guaranteed to represent at least

Your syntax puts modifiers between the calling convention and the
external id. I agree that it's consistent. Currently ghc accepts
unsafe only between the external id and the Haskell id, and dynamic
only instead the external id.

It should not matter that C allows colons in #include. Rules of the
#include argument are implementation dependent, and it should not
be a problem if a programmer can't name a header file included into
Haskell using a colon. He will have to choose a name without a colon.

But we could also cut the last colon instead of the first: a colon
is certainly not valid in a C identifier.

 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
  ^^                      SYGNATURA ZASTÊPCZA

More information about the FFI mailing list