[Haskell-cafe] FFI and pointers to pointers
Simon Marlow
simonmar at microsoft.com
Tue Apr 26 08:16:22 EDT 2005
On 25 April 2005 21:40, John Meacham wrote:
> On Mon, Apr 25, 2005 at 12:51:04PM +0100, Simon Marlow wrote:
>> The syntax you want is
>>
>> foreign import ccall "&bar" :: Ptr CInt
>>
>> But note that GHC 6.4 has a bug whereby this doesn't work as expected
>> when compiling via C. Either use the native code generator (-fasm)
>> or wait for 6.4.1.
>
> Any ETA on 6.4.1? I am debating whether to rewrite code to work around
> this bug or just wait for the point-release?
We don't have any firm plans yet. It makes sense to wait until the flow
of bug reports has slowed, and that hasn't happened yet. But I'll take
your message as a vote for sooner rather than later.
Cheers,
Simon
More information about the Haskell-Cafe
mailing list