Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Mar 21, 2015
    • Edsko de Vries's avatar
      Move PackageFixedDeps from Cabal to cabal-install · 445ad90d
      Edsko de Vries authored
      The fundamental difference between Cabal and cabal-install is that the former
      deals with installed libraries, and -- in principle -- knows about _library_
      dependencies only, whereas the latters deals with setup, executable, test-suite
      and benchmark dependencies in addition to library dependencies. Currently we
      classify all of these simply as 'dependencies' but that will change shortly.
      
      In this commit we take a first step towards this by moving the PackageFixedDeps
      class, which deals with dependencies of packages rather than installed
      libraries, from Cabal to cabal-install.
      
      The commit is pretty simple; we just move the type class and update import
      statements where necessary.
      445ad90d
  2. Mar 20, 2015
  3. Mar 19, 2015
  4. Mar 18, 2015
  5. Mar 17, 2015
  6. Mar 16, 2015
  7. Mar 15, 2015
    • ttuegel's avatar
      fix HPC tests with GHC 7.10 · 1bda4281
      ttuegel authored
      Starting with version 7.10, GHC puts the module interface (.mix) files
      for each project in a subdirectory of -hpcdir named for the package
      key. We must adjust the search path accordingly when checking for the
      .mix file.
      1bda4281
  8. Mar 13, 2015
    • Duncan Coutts's avatar
      Merge pull request #2466 from edsko/bugfix/package-key · 25807bee
      Duncan Coutts authored
      Make sure to pass the package key to ghc
      25807bee
    • Edsko de Vries's avatar
      Make sure to pass the package key to ghc · 3e78870d
      Edsko de Vries authored
      In https://github.com/haskell/cabal/pull/2439 the invocation of Haddock is
      changed to use Haddock's new `--package-name` and `--package-version` flags,
      necessary for GHC >= 7.10 (Cabal issue
      https://github.com/haskell/cabal/issues/2297 / Haddock issue
      https://github.com/haskell/haddock/issues/353). However, this commit also
      removes the `-package-name` argument to GHC. This is incorrect, as it means
      that GHC will end up calling the package `main` and we end up with Haddock link
      environments such as
      
          (trans_H9c1w14lEUN3zdWCTsn8jG:Control.Monad.Trans.Error.strMsg, main:Control.Monad.Error.Class)
      
      Note that before this commit we ended up with
      
          (trans_H9c1w14lEUN3zdWCTsn8jG:Control.Monad.Trans.Error.strMsg, mtl-2.1.1:Control.Monad.Error.Class)
      
      which is equally wrong as it uses a package source ID rather than a package key
      (Haddock issue https://github.com/haskell/haddock/issues/362). Instead, we need
      to pass _both_ `--package-name` and `--package-version` to Haddock, and
      `-package-name` or `-this-package-key` to GHC, depending on the version.
      Thankfully the infrastructure for chosing between `-package-name` and
      `-this-package-key` is already in place, so we just have to make sure to
      populate the `ghcPackageKey` field. After this commit the link environment
      looks like
      
          (trans_H9c1w14lEUN3zdWCTsn8jG:Control.Monad.Trans.Error.strMsg, mtl_Koly6qxRZLf86guywd4tkE:Control.Monad.Error.Class)
      
      which is correct.
      3e78870d
  9. Mar 11, 2015
  10. Mar 10, 2015
  11. Mar 09, 2015
Loading