[Haskell-cafe] On Haskell IDEs

Ben Gamari bgamari.foss at gmail.com
Tue Mar 11 15:34:31 UTC 2014


Maxim Kulkin <maxim.kulkin at gmail.com> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140311/3822b29b/attachment.sig>


More information about the Haskell-Cafe mailing list