> BTW, if I am not mistaken, the FLOATS_AS_DOUBLES feature in
> StgTypes.h will also lead to problems with the FFI if
> invoked. On an architecture where
>
> sizeof (void *) == sizeof (double)
>
> but sizeof (float) < sizeof (double), we won't have a proper
> representation for `CTypes.CFloat'. (Is there any such
> architecture?)
Yes, I think Alpha has this property (and perhaps IA64?). You're absolutely
right, there's no Haskell type corresponding to C's float type on this
architecture, and there should be.
Cheers,
Simon