From: Dato Simó Date: Fri, 19 Oct 2012 14:54:54 +0000 (+0100) Subject: BasicTypes.hs: fix docstring for eitherToResult X-Git-Tag: v2.7.0beta1~771 X-Git-Url: https://code.grnet.gr/git/ganeti-local/commitdiff_plain/98508e7f2049127f58af27db5ad7a1eb0ed519dc?hp=06c9a9d6efc12f8bec1a52f6a339331adbb2f732 BasicTypes.hs: fix docstring for eitherToResult eitherToResult now converts from `Either a b` to `GenericResult`, not necessarily from `Either String` only. Also, fix a typo. Signed-off-by: Dato Simó Reviewed-by: Iustin Pop --- 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