On 2009-02-14, Maurí­cio <briqueabra...@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
-><-

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to