A hack'n'slay game written in haskell (http://sebastiandev.net/blog/)
tilesInRect currently has terrible runtime behavior.
We solved this problem for now with an implementation of octree.