[Haskell-cafe] Re: data structures question

Benjamin Franksen benjamin.franksen at bessy.de
Wed Aug 30 15:40:09 EDT 2006


Matthias Fischmann wrote:
> The trick is that Int is not the only index data type, but tuples of
> index data types are, too.  Do this:
> 
> | type Point = (State, State, Int)
> | type TypeV = Array State Double
> | 
> | matrix :: TypeV
> | matrix = array bounds values
> |    where
> |    ...

Surely you meant to say

| type TypeV = Array Point Double

Cheers,
Ben



More information about the Haskell-Cafe mailing list