[Haskell-cafe] Re: Complex C99 type in Foreign

2009-02-16 Thread Aaron Denney
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

[Haskell-cafe] Re: Complex C99 type in Foreign

2009-02-13 Thread Aaron Denney
On 2009-02-03, Maurí­cio briqueabra...@yahoo.com wrote: Are there plans to include C99 'complex' type in Foreign, maybe as CFloatComplex, CDoubleComplex A separate library for new types to add to Foreign would be the easiest way forward. Just put the foreign-c99 package on Hackage? (...) I

[Haskell-cafe] Re: Complex C99 type in Foreign

2009-02-13 Thread Maurí­cio
Are there plans to include C99 'complex' type in Foreign, maybe as CFloatComplex, CDoubleComplex A separate library for new types to add to Foreign would be the easiest way forward. Just put the foreign-c99 package on Hackage? (...) I could actually have some arbitrary sized parameter as

[Haskell-cafe] Re: Complex C99 type in Foreign

2009-02-02 Thread Maurí­cio
Are there plans to include C99 'complex' type in Foreign, maybe as CFloatComplex, CDoubleComplex A separate library for new types to add to Foreign would be the easiest way forward. Just put the foreign-c99 package on Hackage? (...) I could actually have some arbitrary sized parameter as

[Haskell-cafe] Re: Complex C99 type in Foreign

2009-02-01 Thread Maurí­cio
Are there plans to include C99 'complex' type in Foreign, maybe as CFloatComplex, CDoubleComplex and CLongDoubleComplex? This seems an easy addition to the standard and would allow binding of a few interesting libraries, like GSL. A separate library for new types to add to Foreign would be the

Re: [Haskell-cafe] Re: Complex C99 type in Foreign

2009-02-01 Thread Don Stewart
briqueabraque: Are there plans to include C99 'complex' type in Foreign, maybe as CFloatComplex, CDoubleComplex and CLongDoubleComplex? This seems an easy addition to the standard and would allow binding of a few interesting libraries, like GSL. A separate library for new types to add to

[Haskell-cafe] Re: Complex C99 type in Foreign

2009-02-01 Thread Maurí­cio
Are there plans to include C99 'complex' type in Foreign, maybe as CFloatComplex, CDoubleComplex and CLongDoubleComplex? (...) A separate library for new types to add to Foreign would be the easiest way forward. (...) If it's not true, i.e., I could actually have some arbitrary sized