EitherT package:witch

This function can be used to implement tryFrom with a function that returns Either. For example:
-- Avoid this:
tryFrom s = case f s of
Left e -> Left . TryFromException s . Just $ toException e
Right t -> Right t

-- Prefer this:
tryFrom = eitherTryFrom f