:: Either a b -> b package:from-sum

Convert an Either to a Maybe. A Right value becomes Just.
>>> eitherToMaybe $ Right 3
Just 3
A Left value becomes Nothing.
>>> eitherToMaybe $ Left "bye"
Nothing