[Haskell-cafe] Re: Blitting one IOUArray into another

Bueno, Denis denbuen at sandia.gov
Thu Jan 8 09:51:31 EST 2009

On 01/07/2009 14:36 , "Neal Alexander" <wqeqweuqy at hotmail.com> wrote:

> 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-Uti
> 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.

More information about the Haskell-Cafe mailing list