Remove custom OpResult type/monad
authorIustin Pop <iustin@google.com>
Sun, 7 Oct 2012 20:12:56 +0000 (22:12 +0200)
committerIustin Pop <iustin@google.com>
Thu, 18 Oct 2012 10:55:51 +0000 (12:55 +0200)
commita8038349538bf2e08289d6709c096b476d1b63df
tree200816d0dd7e5b76bc79f280d2653b4589f89d89
parenta4b247f03bdc9d0ac974762b16481ce0c80ce77d
Remove custom OpResult type/monad

Since we now have the GeneralResult as a multi-purpose monad, we can
remove the custom OpResult monad, and just use 'GeneralResult
FailMode' as our type. This allows removal of a few bits of
specialised infrastructure, relying instead on the generic one.

The restriction on using OpResult as a general monad remains as
before.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
htest/Test/Ganeti/HTools/Cluster.hs
htest/Test/Ganeti/HTools/Node.hs
htest/Test/Ganeti/HTools/Types.hs
htest/Test/Ganeti/TestHTools.hs
htools/Ganeti/HTools/Cluster.hs
htools/Ganeti/HTools/Instance.hs
htools/Ganeti/HTools/Node.hs
htools/Ganeti/HTools/Types.hs