Lint the code with Hlint and hdevtools

These are minor computer suggested clean-ups. I'm only putting it on the
`dev` branch first because of a GHC bug on OSX which is preventing me
from testing this.