* move error messages functions from hackage.nix to haskell.nix Co-authored-by: Moritz Angermann <moritz.angermann@gmail.com>