
10 Nov
2007
10 Nov
'07
4:59 p.m.
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:Bulat.Ziganshin@gmail.com