3 Jul
2002
3 Jul
'02
5:47 p.m.
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. Why doesn't Haskell generate a prototype from the 'foreign import' declaration, as part of the -fvia-C compilation? When the prototype is omitted, a default one is assumed. Surely FFI can improve on the default with the information given by the 'foreign import' declaration? In the mean time, how do I work around the problem and provide a prototype myself? -- Ashley Yakeley, Seattle WA