htools: allow different result types
authorIustin Pop <iustin@google.com>
Sat, 2 Jul 2011 08:18:46 +0000 (10:18 +0200)
committerIustin Pop <iustin@google.com>
Wed, 13 Jul 2011 10:13:13 +0000 (12:13 +0200)
commit7c14b50a38f00f49439cf3e42644dcd5f2703fc6
treeb910a0ba47c7ab8dfee9cad3d36b29327041c84b
parentd6cf394e1a166debf69ccee371e7010464bddc79
htools: allow different result types

This patch extends the previous patch changes to allow that each
Cluster function returns a different result type, as long as we have
an auxiliary function that processes that into the standard
IAllocResult type.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
htools/Ganeti/HTools/IAlloc.hs