Use the InstalledPackageIndex rather than calling ghc-pkg in Haddock module Previously we made two calls to ghc-pkg per-dependent package which starts to get very slow once you have 100's of installed packages and the package you're building depends on several of them. Now we use the cached information about the installed packages. Also refactored the code to generate the haddock package flags so we can export it and use it elsewhere more easily.
Use the InstalledPackageIndex rather than calling ghc-pkg in Haddock module
Previously we made two calls to ghc-pkg per-dependent package which starts
to get very slow once you have 100's of installed packages and the package
you're building depends on several of them. Now we use the cached information
about the installed packages. Also refactored the code to generate the haddock
package flags so we can export it and use it elsewhere more easily.

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