
3 Jun
2012
3 Jun
'12
4:10 a.m.
Hi, I have a newb-ish question about Haskell 2D arrays. I need to construct a 2D array of a Haskell data type ("boxed" ?) where each array entry value depends on values "earlier" in the same array (i.e. for entries in previous row/column indexes). Repa (V3.1.4.2) looks very powerful and flexible but it's still not clear to me that it will work with arbitrary values as I haven't been able to get any of the Wiki tutorial array creation examples to work (this is with Haskell platform 2012.2 pre-release for OS/X). I can see I could also construct my own 2D array data structure from Data.Vector instances. Are there any other approaches for general 2D arrays I should be looking at? Thanks, Stu