anchor.diff:      inherit name;
       value = f value;
     }) (attrsToList s));
  -  mkSdist = pkg: pkg.override {
  -    mkDerivation = drv: ghc.mkDerivation (drv // {
  +  mkSdist = pkg: pkg.override (oldArgs: {
  +    mkDerivation = drv: oldArgs.mkDerivation (drv // {
         postConfigure = ''
           ./Setup sdist
           mkdir "$out"
  
positive.code:       '';
        doHaddock = false;
      });
    };
    hackageDocs = mapSet mkHackageDocs ghc;
    mkReleaseCandidate = pkg: nixpkgs.stdenv.mkDerivation (rec {
      name = pkg.name + "-rc";
  
negative.code:       '';
        doHaddock = false;
      });
    });
    sdists = mapSet mkSdist ghc;
    mkHackageDocs = pkg: pkg.override (oldArgs: {
      mkDerivation = drv: oldArgs.mkDerivation (drv // {
        postConfigure = ''
          ./Setup haddock --hoogle --hyperlink-source --html --for-hackage --haddock-option=--built-in-themes
          cd dist/doc/html
  