I have been developing some code that uses Data.Array to use multidimensional arrays, now I want to put those arrays into a data type so I have something like this
data MyType = MyType { a :: Int, b :: Int, c :: Array }
Data.Array has type:
(Ix i, Num i, Num e) => Array i e
Where "e" can be of any type not just Num.
I am convinced I am missing a concept completely.
How do I accomplish this? What is special about the Data.Array type that is different from Int, Num, String etc?
Thanks for the help!
Array
?Num i, Num e
don't look right to me. – C. A. McCann