1. 25 May, 2011 10 commits
    • Duncan Coutts's avatar
    • Duncan Coutts's avatar
      Provide the pkgroot value in ghc-pkg dump & describe when necessary · f35a3d24
      Duncan Coutts authored
      Tools handling installed packages need to be able to interpret the
      paths which are relative to the ${pkgroot} which means they need to
      know the value of ${pkgroot}. With ghc-pkg this is not always obvious
      since ghc-pkg does not currently have any way machine interface for
      reporting the location of its package dbs (global, user). The solution
      we have arrived at is simply to emit the pkgroot as an extra field
      when it is needed.
      There are two cases:
       * --no-expand-pkgroot: ghc-pkg dump/describe will not expand the
         ${pkgroot} var, so it will appear literally in the output and the
         pkgroot field will be generated so that tools know what value to
         use for the ${pkgroot}.
       * --expand-pkgroot: ghc-pkg dump/describe will expand the ${pkgroot}
         and ${pkgrooturl} vars and will not generate the pkgroot field.
      The defaults are:
       * ghc-pkg dump/describe --no-expand-pkgroot
       * ghc-pkg field --expand-pkgroot
    • Simon Marlow's avatar
      sizeExpr: multiply all the sizes by 10, except for primops. This · 4063e1d8
      Simon Marlow authored
      makes primops look cheap (but not free), and improves the Repro4.hs
      example from #4978.
      While I was making this change I accidentally discovered that
      increasing the discount for scrutinised constructors was an
      unambiguous win, so I did that too.
    • Simon Marlow's avatar
      prog_argv and rts_argv now contain *copies* of the args passed to · a6e8418a
      Simon Marlow authored
      setupRtsFlags(), rather than sharing the memory.  Previously if the
      caller of hs_init() passed in dynamically-allocated memory and then
      freed it, random crashes could happen later (#5177).
    • Duncan Coutts's avatar
      Add stricter ghc-pkg checks on package file/dir/url fields · f61d53d3
      Duncan Coutts authored
      The haddock-html and haddock-interface fields are now checked
      as well. Had to fix up ghc-cabal as it used relative paths for
      the inplace package's haddock-html. It turns out that these
      were never used so it could simply be omitted.
    • 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.
    • Duncan Coutts's avatar
      Deprecate the ghc-pkg --auto-ghci-libs flag · 78185538
      Duncan Coutts authored
      It was never a universal solution. It only worked with the GNU linker.
      It has not been used by Cabal for ages. GHCi can now load .a files so
      it will not be needed in future.
    • Duncan Coutts's avatar
      ghc-pkg: don't expand ${name}-style env vars by default · 6ef41c26
      Duncan Coutts authored
      For shell-based build systems the feature is still available as:
        ghc-pkg register --expand-env-vars
      Historically, ghc-pkg allowed environment variables to appear in the
      input files for ghc-pkg register. They are not stored in the package
      database but are expanded upon registration. This feature helped for
      build systems based on makefiles and shell scripts. These days the
      vast majority of such files are generated by Cabal and we don't want
      any ${name} strings (e.g. perhaps in a package description) getting
      accidentally interpreted as an environment variable.
    • Simon Marlow's avatar
      deprecate the -n option (#5180) · 7256b301
      Simon Marlow authored
    • Simon Marlow's avatar
  2. 24 May, 2011 8 commits
  3. 23 May, 2011 1 commit
  4. 22 May, 2011 2 commits
  5. 21 May, 2011 1 commit
  6. 19 May, 2011 3 commits
  7. 18 May, 2011 4 commits
  8. 17 May, 2011 2 commits
    • Duncan Coutts's avatar
      FIX #4825: Update User Guide info on DLLs. · 58339b06
      Duncan Coutts authored
      Original patch by Orphi <MathematicalOrchid@hotmail.com>
      Plus a few miscellaneous updates from me.
    • dimitris's avatar
      Introducing: · 9591547f
      dimitris authored
         1) Postponing the application of instances when there
            is a possibility of a given matching. With the addition
            of prioritizing equalities this fixes #5002 and #4981.
         2) Implemented caching of flattening in constraint
            simplification. This improves efficiency (fixes #5030)
         3) Simplified pushing of unsolved wanteds
            (now pushing only equalities) inside implications.
  9. 16 May, 2011 1 commit
  10. 15 May, 2011 8 commits