Hello Federico,
Tuesday, May 1, 2007, 7:23:45 PM, you wrote:
Thanks for the hints. It's a pity that (as far as I know) no one has
written a tutorial on those techniques,
except for me :) - http://haskell.org/haskellwiki/Modern_array_libraries
--
Best regards,
Bulat
Hello Donald,
Wednesday, May 2, 2007, 7:38:25 AM, you wrote:
Here's an improved version, using Foreign.Marshal.Array. I spent about 2
minutes inspecting the core, as well.
i think that using just the ! on array arguments should be enough.
there is nothing magic in usafeReadArray calls, they