:: Either a a -> a package:either-unwrap

The fromLeft function extracts the element out of a Left and throws an error if its argument take the form Right _.
The fromRight function extracts the element out of a Right and throws an error if its argument take the form Left _.