Well, you could just use Ptr Double to mimick c arrays and define conversion functions. I'm currently porting BLAS and LAPACK to Haskell and this is what I do.
-- Hal Daume III "Computer science is no more about computers | [EMAIL PROTECTED] than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume On Mon, 3 Jun 2002, Ferenc Wagner wrote: > Hi, > > I'd like to call LaPack routines from Haskell. Having read > the GreenCard documentation it's still not obvious to me how > I could marshall a list of numbers to C. Surely it's > possible to create a ForeignObj, then fill it in element-by- > element. But isn't there a more straightforward way? Even > without monads? > > Cheers: Feri. > _______________________________________________ > Haskell mailing list > [EMAIL PROTECTED] > http://www.haskell.org/mailman/listinfo/haskell > _______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell