Generating Function Prototypes

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Thu Jul 4 07:10:25 EDT 2002


Alastair Reid <reid at reid-consulting-uk.ltd.uk> writes:

>   foreign import foo :: Float -> Char
>     
>       extern HsChar ffi_generated_foo(HsChar arg1);

Errm, shouldn't that be:

        extern HsChar ffi_generated_foo(HsFloat arg1);
                                        ^^^^^^^
??  Or is there some other trick involved here?
Regards,
    Malcolm




More information about the FFI mailing list