Shorten code by using Functor instance

The Functor instance of 'Either a' does just what I want, so let's use that to shorten the code. I also submitted a pull request to hlint so that it warns me about stuff like this in the future.