[Haskell-cafe] Re: Complex C99 type in Foreign
Aaron Denney
wnoise at ofb.net
Mon Feb 16 18:44:59 EST 2009
On 2009-02-14, Maurício <briqueabraque at yahoo.com> wrote:
> The way you wrote CComplex a, is it possible to write
>
> foreign import ccall "somename" somename
> :: CComplex CDouble -> IO CComplex CDouble
Ah, no, I'm afraid not, I misunderstood what you wanted. You do indeed
need to go through CPtr (CComplex CDouble) with this scheme. I think
having direct access at this level requires modifying the compiler. The
FFI spec really does need to be updated to C99.
--
Aaron Denney
-><-
More information about the Haskell-Cafe
mailing list