hbal: Change hardcoded tests to monadic composition
authorIustin Pop <iustin@google.com>
Sat, 25 Apr 2009 14:31:25 +0000 (16:31 +0200)
committerIustin Pop <iustin@google.com>
Sat, 25 Apr 2009 15:39:14 +0000 (17:39 +0200)
commitb161386d5519fd2041fed3aaa3a50a65dd9da761
treeab976a80d0a3fd4ea2f82210a01a66a84ecd4bb1
parentf438b9b3be110337ea946607fd018864262f5ae6
hbal: Change hardcoded tests to monadic composition

In some case we manually do “if isNothing … then Nothing else …”, which
can be very easily replaced with a monadic construct in the Maybe monad.
Ganeti/HTools/Cluster.hs