1. 18 Jun, 2011 1 commit
  2. 10 Jun, 2011 1 commit
  3. 25 May, 2011 1 commit
    • Duncan Coutts's avatar
      Implement ${pkgroot} spec, allows relocatable registered packages · 40b6bd47
      Duncan Coutts authored
      Historically ghc implemented relocatable packages by allowing
      "$topdir" in the package registration info and having ghc expand
      this with its notion of $topdir. The topdir refers to where ghc
      itself is installed (specifically the libdir).
      The ${pkgroot} spec takes this idea and makes it portable.
      Instead of paths relative to where ghc is installed, they can be
      relative to the package database itself. Thus it is no longer a
      ghc-specific idea and can work for package collections other than
      the global package db.
  4. 21 Apr, 2011 1 commit
  5. 24 Jan, 2011 1 commit
    • chak@cse.unsw.edu.au.'s avatar
      DPH options updated · 9e6e96bd
      chak@cse.unsw.edu.au. authored
      - '-Odph' is now '-O2 -fsimplifier-phases=3 -fsimplifier-iterations=20'
      - The new option '-fdph-none' is the default; it indicates that no DPH
        backend is selected and is the only valid option if the DPH libraries
        are not installed.  If vectorisation is attempted with -fdph-none a
        suitable error message is generated.
      - Hence, '-fdph-par' (or '-fdph-seq') needs to be explicitly selected
        when using vectorisation and when linking vectorised code.  (There
        seems to be no elegant way to avoid that.)
  6. 22 Dec, 2010 1 commit
  7. 21 Oct, 2010 1 commit
  8. 06 Oct, 2010 1 commit
  9. 23 Sep, 2010 1 commit
  10. 22 Sep, 2010 1 commit
    • simonpj@microsoft.com's avatar
      Fix an ASSERT failure with profiling · 9e6ca39b
      simonpj@microsoft.com authored
      The problem arose with this kind of thing
         x = (,) (scc "blah" Nothing)
      Then 'x' is marked NoCafRefs by CoreTidy, becuase it has 
      arity 1, and doesn't mention any caffy things.
      That in turns means that CorePrep must not float out the
      sat binding to give
        sat = scc "blah" Nothing
        x = (,) sat
      Rather we must generate
        x = \eta. let sat = scc "blah" Nothing 
                  in (,) sat eta
      URGH! This Caf stuff is such a mess.
  11. 14 Sep, 2010 1 commit
    • Ian Lynagh's avatar
      Remove (most of) the FiniteMap wrapper · e95ee1f7
      Ian Lynagh authored
      We still have
          insertList, insertListWith, deleteList
      which aren't in Data.Map, and
      which works around the fold(r)WithKey addition and deprecation.
  12. 19 May, 2010 1 commit
    • Simon Marlow's avatar
      Fix package shadowing order (#4072) · 636c2750
      Simon Marlow authored
      Later packages are supposed to shadow earlier ones in the stack,
      unless the ordering is overriden with -package-id flags.
      Unfortunately an earlier fix for something else had sorted the list of
      packages so that it was in lexicographic order by installedPackageId,
      and sadly our test (cabal/shadow) didn't pick this up because the
      lexicographic ordering happened to work for the test.  I've now fixed
      the test so it tries both orderings.
  13. 03 Dec, 2009 1 commit
  14. 12 Nov, 2009 1 commit
    • Simon Marlow's avatar
      Fix bug when the combined package DB has duplicate package IDs · 1c5fb336
      Simon Marlow authored
      Someone on IRC reported that they were encountering a strange missing
      module error from GHC, and it turned out that they had mtl-
      installed in both the global and local DB, with the same
      InstalledPackageId.  The two packages should be interchangeable, but
      we were forgetting to eliminate duplicates in part of the
      package-processing phase in GHC.
      Really I should switch this code over to use the new PackageIndex data
      type in Cabal, which ought to make things simpler.
  15. 04 Nov, 2009 1 commit
  16. 06 Oct, 2009 1 commit
  17. 18 Sep, 2009 1 commit
  18. 17 Sep, 2009 1 commit
  19. 11 Sep, 2009 1 commit
  20. 10 Sep, 2009 1 commit
    • Simon Marlow's avatar
      Change the representation of the package database · 930421d4
      Simon Marlow authored
       - the package DB is a directory containing one file per package
         instance (#723)
       - there is a binary cache of the database (#593, #2089)
       - the binary package is now a boot package
       - there is a new package, bin-package-db, containing the Binary
         instance of InstalledPackageInfo for the binary cache.
      Also included in this patch
       - Use colour in 'ghc-pkg list' to indicate broken or hidden packages
         Broken packages are red, hidden packages are 
         Colour support comes from the terminfo package, and is only used when
          - not --simple-output
          - stdout is a TTY
          - the terminal type has colour capability
       - Fix the bug that 'ghc-pkg list --user' shows everything as broken
  21. 08 Sep, 2009 1 commit
    • Simon Marlow's avatar
      Add -package-id, improve package shadowing behaviour and error messages · 03bb97e0
      Simon Marlow authored
      A few changes bundled together here:
       - Add -package-id flag, like -package but takes an
         InstalledPackageId as an argument (mainly for Cabal)
         (docs to follow)
       - Fix the shadowing behaviour: if we end up with
         two packages with the same name/version that came from
         different package databases, then one will shadow the
         other.  This may mean we have to disable other packages
         that depended on the now-shadowed package.  Lots of
         refactoring to ensure that we can get reasonable diagnostics when
         this happens
      <command line>: cannot satisfy -package shadowdep: 
          shadowdep-1-XXX is unusable due to missing or recursive dependencies:
          (use -v for more information)
  22. 24 Aug, 2009 2 commits
  23. 20 Aug, 2009 2 commits
  24. 09 Jul, 2009 1 commit
  25. 06 Jul, 2009 1 commit
  26. 26 Mar, 2009 1 commit
  27. 07 Oct, 2008 1 commit
  28. 03 Oct, 2008 1 commit
  29. 16 Sep, 2008 1 commit
  30. 01 Sep, 2008 1 commit
    • Simon Marlow's avatar
      Check the modification times of libraries in --make link step · 880a6b90
      Simon Marlow authored
      When linking in --make we check the modification time of the
      executable against the modification time of the object files, and only
      re-link if any object file is newer.  However, we should also check
      the modification times of packages, since the recompilation checker
      also tracks dependencies in packages.  
      In a GHC build this means that if you recompile stage2 and don't
      manage to change any fingerpints, we won't recompile Main but we'll
      still re-link it.
  31. 25 Aug, 2008 1 commit
  32. 13 Aug, 2008 1 commit
  33. 05 Aug, 2008 1 commit
    • Simon Marlow's avatar
      Add -XPackageImports, new syntax for package-qualified imports · 1867a7bb
      Simon Marlow authored
      Now you can say
        import "network" Network.Socket
      and get Network.Socket from package "network", even if there are
      multiple Network.Socket modules in scope from different packages
      and/or the current package.
      This is not really intended for general use, it's mainly so that we
      can build backwards-compatible versions of packages, where we need to
      be able to do
      module GHC.Base (module New.GHC.Base) where
      import "base" GHC.Base as New.GHC.Base
  34. 07 Aug, 2008 1 commit
  35. 31 Jul, 2008 2 commits
  36. 30 Jul, 2008 1 commit
  37. 24 Jul, 2008 1 commit