> On Jun 19, 2011 9:58 AM, "Antoine Latter" <[email protected]> wrote:
>> I'd be afraid of optimizations getting ride of the constructor, and since
>> I'm not using all of the fields I would no longer have a reference to the
>> foreign ptr.
>>
>> Since withForeignPtr touches the foreign pointer the optimizations won't
>> make it go away no matter how it transfoms the function.

Good point.

I already made the necessary fixes to my usb library in the
ForeignPtrFix branch:

https://github.com/basvandijk/usb/tree/ForeignPtrFix

I think I'll merge it with master.

Thanks,

Bas

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to