:: Either a b -> a package:relude

Maps left part of Either to Maybe.
>>> leftToMaybe (Left True)
Just True

>>> leftToMaybe (Right "aba")
Nothing