BasicTypes.hs: fix docstring for eitherToResult
authorDato Simó <dato@google.com>
Fri, 19 Oct 2012 14:54:54 +0000 (15:54 +0100)
committerDato Simó <dato@google.com>
Fri, 19 Oct 2012 15:04:36 +0000 (16:04 +0100)
eitherToResult now converts from `Either a b` to `GenericResult`, not
necessarily from `Either String` only. Also, fix a typo.

Signed-off-by: Dato Simó <dato@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

htools/Ganeti/BasicTypes.hs

index 8f29f33..149540f 100644 (file)
@@ -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