Re: Unacceptable result type in FFI

Neal Alexander <[email protected]> Fri, 13 Feb 2009 00:21:33 -0800
Newsgroups gmane.comp.lang.haskell.haskelldoc
Message-ID <[email protected]>
David Waern wrote:
> 2009/2/8 Neal Alexander <[email protected]>:
>> David Waern wrote:
>>> 2008/12/4 Neal Alexander <[email protected]>:
>>>> David Waern wrote:
>>>>> Sorry, I forgot about this thread. Do you still have this problem?
>>>>>
>>>>> Regards,
>>>>> David
>>>> Yea, i haven't tried to fix it since then though.
>>> I took a look at this problem again, and I think I nailed down to a
>>> GHC bug (but you can never be sure):
>>>
>>>  http://hackage.haskell.org/trac/ghc/ticket/3008
>>>
>>> David
>> Thanks for looking at it again.
>>
>>
>> I tried passing -O* to ghc through haddock but it doesn't seem to do
>> anything.
> 
> I know! I was also confused by this. But it could perhaps have
> something to do with the fact that Haddock doesn't compile anything,
> at least if you're using one of latest versions :) So, I hoping for
> htis to be a GHC error.
> 
> David

For the mailing list's reference:
---------------------------
02/12/09 01:25:40 changed by simonpj

Excellent report.

The real culprit is in the FFI spec: see 
http://www.haskell.org/pipermail/haskell-prime/2009-February/002726.html.

Until that thread is resolved, you can work around this bug by exporting 
GL(..). Indeed, if my proposal is accepted, you'll be forced to do that.

Simon