anchor.diff:    };
     ghcjs = ghcjs8_4;
     ghcHEAD = (extendHaskellPackages nixpkgs.pkgs.haskell.packages.ghcHEAD).override {
  -    overrides = nixpkgs.lib.foldr nixpkgs.lib.composeExtensions (_: _: {}) [
  +    overrides = lib.foldr lib.composeExtensions (_: _: {}) [
         (optionalExtension enableExposeAllUnfoldings haskellOverlays.exposeAllUnfoldings)
         haskellOverlays.ghc-head
       ];
     };
     ghc8_4 = (extendHaskellPackages nixpkgs.pkgs.haskell.packages.ghc843).override {
  -    overrides = nixpkgs.lib.foldr nixpkgs.lib.composeExtensions (_: _: {}) [
  +    overrides = lib.foldr lib.composeExtensions (_: _: {}) [
         (optionalExtension enableExposeAllUnfoldings haskellOverlays.exposeAllUnfoldings)
         (ghcjsPkgs (useTextJSStringAsBootPkg (nixpkgs.pkgs.haskell.compiler.ghcjs84.override {
           ghcjsSrc = fetchgit {
  
positive.code:       let filterArgs = x: removeAttrs x [ "branch" ];
        in if builtins.pathExists (p + "/git.json") then (
          let gitArgs = filterArgs (builtins.fromJSON (builtins.readFile (p + "/git.json")));
          in if builtins.elem "@" (nixpkgs.lib.stringToCharacters gitArgs.url)
          then fetchgitPrivate gitArgs
          else fetchgit gitArgs)
        else if builtins.pathExists (p + "/github.json") then fetchFromGitHub (filterArgs (builtins.fromJSON (builtins.readFile (p + "/github.json"))))
  
negative.code:         name = baseNameOf p;
          outPath = filterGit p;
        };
      inherit (lib) optional optionals optionalAttrs;
      optionalExtension = cond: overlay: if cond then overlay else _: _: {};
      applyPatch = patch: src: nixpkgs.runCommand "applyPatch" {
        inherit src patch;
  