Passing a matrix from C to Haskell

Bulat Ziganshin bulatz at HotPOP.com
Wed Feb 8 02:43:31 EST 2006


Hello Chris,

Wednesday, February 08, 2006, 2:35:39 AM, you wrote:

CK> You probably want Foreign.Marshal.Array

CK> http://www.haskell.org/ghc/docs/6.4.1/html/libraries/base/Foreign-Marshal-Array.html

CK> peekArray :: Storable a => Int -> Ptr a -> IO [a]

i think we should define "secret door" to construct StorableArray from
a pointer to allow to use full power of MArray interface on foreign
arrays

-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Glasgow-haskell-users mailing list