When parsing ghc-pkg output, only look at the first package.conf file for GlobalPackageDB and SpecificPackageDB, and all package.conf files for UserPackageDB. Before, we would consider user packages when fulfilling dependencies for global installs. ghc-pkg will refuse to install packages globally if they use user packages. Thus, without this patch, global installs can fail when you have user packages installed.
When parsing ghc-pkg output, only look at the first package.conf file for GlobalPackageDB and SpecificPackageDB, and all package.conf files for UserPackageDB.
Before, we would consider user packages when fulfilling dependencies
for global installs. ghc-pkg will refuse to install packages globally if they
use user packages. Thus, without this patch, global installs can fail when you have user packages installed.

martinvlk/cabal,plow-technologies/cabal,triplepointfive/cabal,ian-ross/cabal,thomie/cabal,thoughtpolice/cabal,mmakowski/cabal,mightybyte/cabal,christiaanb/cabal,enolan/cabal,edsko/cabal,valderman/cabal,randen/cabal,enolan/cabal,eric-stanley/cabal,lukexi/cabal,thomie/cabal,mydaum/cabal,valderman/cabal,plumlife/cabal,anton-dessiatov/cabal,bennofs/cabal,typelead/epm,triplepointfive/cabal,plumlife/cabal,mightybyte/cabal,randen/cabal,corngood/cabal,corngood/cabal,mmakowski/cabal,mydaum/cabal,beni55/cabal,kosmikus/cabal,gridaphobe/cabal,garetxe/cabal,kosmikus/cabal,typelead/epm,sopvop/cabal,eric-stanley/cabal,anton-dessiatov/cabal,fpco/cabal,x-y-z/cabal,ghc-android/cabal,Heather/cabal,trskop/cabal,rimmington/cabal,seereason/cabal,Heather/cabal,edsko/cabal,Peaker/cabal,beni55/cabal,bennofs/cabal,Peaker/cabal,martinvlk/cabal,Helkafen/cabal,alphaHeavy/cabal,garetxe/cabal,ian-ross/cabal,trskop/cabal,fugyk/cabal,thoughtpolice/cabal,kolmodin/cabal,themoritz/cabal,ghc-android/cabal,fpco/cabal,headprogrammingczar/cabal,headprogrammingczar/cabal,sopvop/cabal,gbaz/cabal,gbaz/cabal,themoritz/cabal,x-y-z/cabal,gridaphobe/cabal,lukexi/cabal,christiaanb/cabal,alphaHeavy/cabal,themoritz/cabal,seereason/cabal,kolmodin/cabal,Helkafen/cabal,rimmington/cabal,plow-technologies/cabal,sopvop/cabal,fugyk/cabal