htools: add a MonadPlus instance for Result
authorIustin Pop <iustin@google.com>
Tue, 20 Sep 2011 08:28:49 +0000 (17:28 +0900)
committerMichael Hanselmann <hansmi@google.com>
Thu, 22 Sep 2011 09:44:18 +0000 (11:44 +0200)
commit1c7c4578ec021ec1bbf4ea4efe5be6a7ed5f0cde
tree510bfcaa14e931f6bdbf825ca5961d9487f587cd
parent5916e61a1033e2b1f80af413d2f70297c6680b45
htools: add a MonadPlus instance for Result

This will be used to implement more easily 'choice' parsing of input
data, without resorting to syntax (case … of Bad _ -> …).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Agata Murawska <agatamurawska@google.com>
htools/Ganeti/HTools/Types.hs