Unless you're dealing with a board with millions of positions or more, sparse matrices don't matter. 

The array package has support for 2d arrays. 

I've my own pretty fancy multi dim array tooling in the works, but for your use case just use array package 

On Friday, June 20, 2014, Chris Warburton <chriswarbo@googlemail.com> wrote:
Corentin Dupont <corentin.dupont@gmail.com> writes:

> Instead of encoding the board, I would encode the position of the pieces:
> there is usually much less pieces than squares.

Possibly useful: http://en.wikipedia.org/wiki/Sparse_matrix

Cheers,
Chris
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe