I would like to be able to draw something like a chess board using haskell and gloss.
In any other language I could do something like
for( i=0; i < 10; i++){
for( j=0; j < 10; j++){
drawSquare(radius, i, j)
}
}
and that would be it, but I am new to haskell and I have no idea how this can be done. I am using Gloss and I am able to draw things manually, but I want to be able to create them procedurally not 1 by 1 until I draw 100 squares.