Simplify the checkInstanceMove function
authorIustin Pop <iustin@google.com>
Sun, 15 Feb 2009 13:48:39 +0000 (14:48 +0100)
committerIustin Pop <iustin@google.com>
Sun, 15 Feb 2009 13:48:39 +0000 (14:48 +0100)
commit9dc6023f3f671063125e3b6c5e632dfbca4af4aa
treeba1cd25dea5e8e6b7cbada5d3cc172db7e4a3de1
parent256810de286c67c4ae68acbdb009ec94d4ca7776
Simplify the checkInstanceMove function

This patch flattens the two folds into one, by simply building the whole
list of moves instead  of the double recursion (nodes and the each
node's moves). This has no functional change, but it's much cleaner.
src/Cluster.hs