Replace explicit case with 'either'
authorIustin Pop <iustin@google.com>
Tue, 6 Mar 2012 21:53:33 +0000 (23:53 +0200)
committerIustin Pop <iustin@google.com>
Thu, 15 Mar 2012 14:05:00 +0000 (15:05 +0100)
commit91575c31eb688bc033a9e0888c28ecd1badce6ae
treeb2d2e0f9fe316adf47bff7253206275f8e187aae
parenta1741ae544beb3d2f25bd9511132e5380f6472ae
Replace explicit case with 'either'

Instead of manually case-ing on the Either contents, let's just use
either with const functions (not really readable, but…).

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