anchor.diff:        doHaddock = false;
       });
     });
  -  sdists = mapSet mkSdist ghc;
  +  sdists = mapSet mkSdist haskellPackages;
     mkHackageDocs = pkg: pkg.override (oldArgs: {
       mkDerivation = drv: oldArgs.mkDerivation (drv // {
         postConfigure = ''
  
positive.code:       doHaddock = false;
      });
    });
    hackageDocs = mapSet mkHackageDocs ghc;
    mkReleaseCandidate = pkg: nixpkgs.stdenv.mkDerivation (rec {
      name = pkg.name + "-rc";
      sdist = mkSdist pkg + "/${pkg.pname}-${pkg.version}.tar.gz";
      docs = mkHackageDocs pkg + "/${pkg.pname}-${pkg.version}-docs.tar.gz";
  
negative.code: 
      # 'checked' isn't used, but it is here so that the build will fail
      # if tests fail
      checked = pkgs.haskell.lib.overrideCabal pkg (drv: {
        doCheck = true;
        src = sdist;
      });
    });
    releaseCandidates = mapSet mkReleaseCandidate haskellPackages;
  }
  