The mapLeft function takes a function and applies it to an Either value
iff the value takes the form Left _.
Using Data.Bifunctor:
mapLeft = first
Using Control.Arrow:
mapLeft = (left)
Using Control.Lens:
mapLeft = over _Left
mapLeft (*2) (Left 4)Left 8
mapLeft (*2) (Right "hello")Right "hello"