anchor.diff:    installPhase = ''
       runHook preInstall
   
  -    ${if !hasActiveLibrary then "${setupCommand} install" else ''
  +    ${if !isLibrary then "${setupCommand} install" else ''
         ${setupCommand} copy
         local packageConfDir="$out/lib/${ghc.name}/package.conf.d"
         local packageConfFile="$packageConfDir/${pname}-${version}.conf"
  
positive.code:     runHook preSetupCompilerEnvironment
  
      echo "Build with ${ghc}."
      ${optionalString (hasActiveLibrary && hyperlinkSource) "export PATH=${hscolour}/bin:$PATH"}
  
      setupPackageConfDir="$TMPDIR/setup-package.conf.d"
      mkdir -p $setupPackageConfDir
  
negative.code:   inherit src;
  
    inherit depsBuildBuild nativeBuildInputs;
    buildInputs = otherBuildInputs ++ optionals (!isLibrary) propagatedBuildInputs;
    propagatedBuildInputs = optionals isLibrary propagatedBuildInputs;
  
    LANG = "en_US.UTF-8";         # GHC needs the locale configured during the Haddock phase.
  
  