On Thu, Jan 19, 2012 at 1:15 PM, Dominic Espinosa <dces...@fastmail.fm> wrote: > Hello, > > I'm trying to use the fftw binding, and its functions operate on CArrays of > Complex. My data is coming from hsndfile, so it starts out as a Vector of > Double. How do I convert this data to CArray? The API functions in the > CArray module don't seem to indicate how. > > Thanks.
I've not tried this, but I would expect to be able to use <http://hackage.haskell.org/package/hsndfile-vector-0.4.0>, and then use the ForeignPtr that lives inside the Vector the to build a CArray. Anthony _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe