How do you convert from an Unboxed Vector to a JS TypedArray on GHCJS?
I have an element of type Data.Vector.Unboxed.Vector Word32 . I want to convert that to a native JS TypedArray (an Uint32Array , specifically). I'm aware of toJsArray and toJsValListOf , but both functions deal with lists, not vectors, and are inefficient. How can I convert an unboxed Vector directly to a JS TypedArray ? I was able to solve this up to marshalling to an Int32Array instead of an Uint32Array ; probably someone who has actually known GHCJS for more than the one hour I've put into this will be able to expand on this so that you get your Uint32Array (or you can just make a hacked-up