Passing a matrix from C to Haskell

Bulat Ziganshin bulatz at
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> 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

Best regards,
 Bulat                            mailto:bulatz at

More information about the Glasgow-haskell-users mailing list