Fix errors from `cabal check`.