Hello Justin, Saturday, November 10, 2007, 10:09:54 PM, you wrote:
> makeArray :: [a] -> Ring a > makeArray ls = Ring (ST.runSTUArray (ST.newListArray (0, length ls - 1) ls)) unboxed arrays in std library are not polymorphic, look at http://haskell.org/haskellwiki/Library/ArrayRef ps: as Stefan said, you will get very low performance with polymorphic code without 100% inlining -- Best regards, Bulat mailto:[EMAIL PROTECTED] _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
