
Ben, https://ghc.haskell.org/trac/ghc/ticket/8244 is what you're referring
to, I think.
JP
On Tue, Mar 11, 2014 at 4:34 PM, Ben Gamari
Maxim Kulkin
writes: ghc package depends on exact version of Cabal pacakge. I understand why old package depends on some other old package. I just don't understand why GHC depends on Cabal.
I believe GHC uses a few types from Cabal. Namely InstalledPackageInfo and a few related types,
$ git grep 'import Distribution' compiler compiler/ghci/Linker.lhs:import Distribution.Package hiding (depends, PackageId) compiler/main/Finder.lhs:import Distribution.Text compiler/main/Finder.lhs:import Distribution.Package hiding (PackageId) compiler/main/PackageConfig.hs:import Distribution.InstalledPackageInfo compiler/main/PackageConfig.hs:import Distribution.ModuleName compiler/main/PackageConfig.hs:import Distribution.Package hiding (PackageId) compiler/main/PackageConfig.hs:import Distribution.Text compiler/main/PackageConfig.hs:import Distribution.Version compiler/main/Packages.lhs:import Distribution.InstalledPackageInfo compiler/main/Packages.lhs:import Distribution.InstalledPackageInfo.Binary compiler/main/Packages.lhs:import Distribution.Package hiding (PackageId,depends)
At one point I believe there was a proposal to move these to a separate package but I don't have a reference on hand.
Cheers,
- Ben
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- JP Moresmau http://jpmoresmau.blogspot.com/