
8 Jan
2009
8 Jan
'09
9:51 a.m.
On 01/07/2009 14:36 , "Neal Alexander"
Bueno, Denis wrote:
Oh, do you mean by actually calling memcpy via ffi?
http://www.haskell.org/ghc/docs/latest/html/libraries/base/Foreign-Marshal-U... ls.html
Ah, thanks. Is there a way to simply "cast" an IOUArray Int Int64 into something like a Ptr Int64, or will I need to change my code to allocate the arrays differently (using something in Foreign.*)? I hoogle'd functions "IOUArray a b -> Ptr b", but couldn't find anything. Denis