Hello Ketil, Friday, May 16, 2008, 5:27:29 PM, you wrote:
> I guess it would be possible to have UArray Int (# Double, Double, > Double #) - packing all three Doubles unboxed into the array, but I've > no clue how to go about automating that. unoxed tuple doesn't have a box so it cannot be instance of typeclass. actually, ordinary tuple will solve this problem unless one problem in GHC - it's UArray indexing primitives use *element* indexes inatead of *byte* indexes. although at least we can implement UArray ix (a,a), UArray ix (a,a,a) and so on -- Best regards, Bulat mailto:[EMAIL PROTECTED] _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
