htools: add two monad-conversion utility functions
authorIustin Pop <iustin@google.com>
Wed, 6 Jul 2011 22:12:28 +0000 (00:12 +0200)
committerIustin Pop <iustin@google.com>
Thu, 14 Jul 2011 09:05:58 +0000 (11:05 +0200)
commita30b473c1531faf8a7fba1a792c98ef5e25c2194
treea08817065a7f8b591aac21d949a4d875b708ed1b
parent63a7805527762da35403ace922230bc7bb3376c3
htools: add two monad-conversion utility functions

For monadic operations, these function will make it easier to convert
other monads (or monad-like structure) to our 'Result' type.

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