haskell.compiler: elaborate error when cross compiling hadrian ghcs

People seem to frequently expect pkgsCross.*.haskell.compiler.* /
pkgsStatic.haskell.compiler.* to contain cross compilers and are greeted
with a failing assert instead. We can help them out a little bit, by
hinting the may have meant to use buildPackages.

Changed files
+2 -1
pkgs
development
compilers
+2 -1
pkgs/development/compilers/ghc/common-hadrian.nix
···
assert stdenv.buildPlatform == stdenv.hostPlatform || stdenv.hostPlatform == stdenv.targetPlatform;
# It is currently impossible to cross-compile GHC with Hadrian.
-
assert stdenv.buildPlatform == stdenv.hostPlatform;
+
assert lib.assertMsg (stdenv.buildPlatform == stdenv.hostPlatform)
+
"GHC >= 9.6 can't be cross-compiled. If you meant to build a GHC cross-compiler, use `buildPackages`.";
let
inherit (stdenv) buildPlatform hostPlatform targetPlatform;