[commit: ghc] ghc-8.0: Extend ghc environment file features (57fa4c5)

git at git.haskell.org git at git.haskell.org
Tue Jan 5 22:34:13 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/57fa4c59bb92c12845e5d313c015bac1af657b55/ghc

>---------------------------------------------------------------

commit 57fa4c59bb92c12845e5d313c015bac1af657b55
Author: Duncan Coutts <duncan at well-typed.com>
Date:   Tue Jan 5 22:13:26 2016 +0100

    Extend ghc environment file features
    
    A set of changes to enable local ghc env files to be useful for tools
    like cabal. Ultimately it will allow cabal to maintain a ghc env file so
    that users can simple run ghc or ghci in a project directory and get the
    expected environment of the project.
    
    Change the name of .ghc.environment files to include the platform and
    ghc version, e.g. .ghc.environment.x86_64-linux-7.6.3, since their
    content is version specific. Strictly speaking this is not backwards
    compatible, but we think this feature is not widely used yet.
    
    "Look up" for a local env file, like the behaviour of git/darcs etc. So
    you can be anywhere within a project and get the expected environment.
    
    Don't look for local env files when -hide-all-packages is given.
    
    Extend the syntax of env files to allow specifying package dbs too.
    
    Test Plan:
    Currently completely untested. Compiles, that is all.
    Sorry, have to disappear for the hols.
    
    Reviewers: hvr, ezyang, austin, bgamari
    
    Reviewed By: ezyang, bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1668
    
    GHC Trac Issues: #11268


>---------------------------------------------------------------

57fa4c59bb92c12845e5d313c015bac1af657b55
 compiler/main/DynFlags.hs     | 109 ++++++++++++++++++++++++++++++++----------
 docs/users_guide/packages.rst |  45 +++++++++++++----
 2 files changed, 120 insertions(+), 34 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 57fa4c59bb92c12845e5d313c015bac1af657b55


More information about the ghc-commits mailing list