Generating Function Prototypes
Alastair Reid
reid at reid-consulting-uk.ltd.uk
Wed Jul 3 09:23:06 EDT 2002
> I've been having trouble with an imported function that returns
> Int64/"long long". Haskell doesn't generate a prototype, so regular
> 'int' type is assumed.
Which compiler is this for? As you saw from the other replies,
compilers vary in whether or not they add prototypes. GHC: yes, NHC:
no, Hugs: depends which day you grabbed your copy from CVS.
(I'm not sure that the ffi should allow compilers to vary in this way
but it does.)
--
Alastair Reid reid at cs.utah.edu http://www.cs.utah.edu/~reid/
More information about the FFI
mailing list