@@ -147,10 +147,18 @@ final: prev: {
147 else ((plan-pkgs.extras hackage).compiler or (plan-pkgs.pkgs hackage).compiler).nix-name;
147 else ((plan-pkgs.extras hackage).compiler or (plan-pkgs.pkgs hackage).compiler).nix-name;
148 pkg-def = excludeBootPackages compiler-nix-name plan-pkgs.pkgs;
148 pkg-def = excludeBootPackages compiler-nix-name plan-pkgs.pkgs;
149 patchesModule = ghcHackagePatches.${compiler-nix-name'} or {};
149 patchesModule = ghcHackagePatches.${compiler-nix-name'} or {};
150+ package.compiler-nix-name.version = final.buildPackages.haskell-nix.compiler.${compiler-nix-name'}.version;
151+ plan.compiler-nix-name.version = final.buildPackages.haskell-nix.compiler.${(plan-pkgs.pkgs hackage).compiler.nix-name}.version;
152+ withMsg = final.lib.assertMsg;
151 # Check that the GHC version of the selected compiler matches the one of the plan
154 # Check that the GHC version of the selected compiler matches the one of the plan
152− assert (final.buildPackages.haskell-nix.compiler.${compiler-nix-name'}.version
156+ (package.compiler-nix-name.version
153− == final.buildPackages.haskell-nix.compiler.${(plan-pkgs.pkgs hackage).compiler.nix-name}.version);
157+ == plan.compiler-nix-name.version)
159+ The compiler versions for the package and the plan don't match.
160+ Make sure you didn't forget to update plan-sha256.''
154 mkPkgSet {
162 mkPkgSet {
155 inherit pkg-def;
163 inherit pkg-def;
156 pkg-def-extras = [ plan-pkgs.extras
164 pkg-def-extras = [ plan-pkgs.extras