eitherToResult now converts from `Either a b` to `GenericResult`, not necessarily from `Either String` only. Also, fix a typo.
Signed-off-by: Dato Simó <[email protected]> --- htools/Ganeti/BasicTypes.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htools/Ganeti/BasicTypes.hs b/htools/Ganeti/BasicTypes.hs index 8f29f33..149540f 100644 --- a/htools/Ganeti/BasicTypes.hs +++ b/htools/Ganeti/BasicTypes.hs @@ -123,7 +123,7 @@ isOk _ = False isBad :: GenericResult a b -> Bool isBad = not . isOk --- | Converter from Either String to 'GeneicResult'. +-- | Converter from Either to 'GenericResult'. eitherToResult :: Either a b -> GenericResult a b eitherToResult (Left s) = Bad s eitherToResult (Right v) = Ok v -- 1.7.12.2-x20-1
