[commit: ghc] ghc-8.4: List 'setEnv' as opposite of 'getEnv' (1cd5d6c)

git at git.haskell.org git at git.haskell.org
Fri Mar 2 22:34:54 UTC 2018


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

On branch  : ghc-8.4
Link       : http://ghc.haskell.org/trac/ghc/changeset/1cd5d6cdf80280b634399849c46df8bef377c25d/ghc

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

commit 1cd5d6cdf80280b634399849c46df8bef377c25d
Author: Sergey Vinokurov <serg.foo at gmail.com>
Date:   Wed Feb 7 21:49:56 2018 +0000

    List 'setEnv' as opposite of 'getEnv'
    
    It seems best to direct users to use 'System.Environment.setEnv'
    rather than 'System.Posix.Env.putEnv'. This is due to 'setEnv' being
    located in the same module as 'getEnv' and my virtue of working on
    Windows platform, whereas 'putEnv' does not have that quality because
    it's part of the 'unix' package.
    
    (cherry picked from commit c74fcf5d27744c67b09b29a78029c31c9371cf41)


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

1cd5d6cdf80280b634399849c46df8bef377c25d
 libraries/base/System/Environment.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libraries/base/System/Environment.hs b/libraries/base/System/Environment.hs
index 343b772..5604ca2 100644
--- a/libraries/base/System/Environment.hs
+++ b/libraries/base/System/Environment.hs
@@ -123,8 +123,8 @@ basename f = go f f
 
 
 -- | Computation 'getEnv' @var@ returns the value
--- of the environment variable @var at . For the inverse, POSIX users
--- can use 'System.Posix.Env.putEnv'.
+-- of the environment variable @var at . For the inverse, the
+-- `System.Environment.setEnv` function can be used.
 --
 -- This computation may fail with:
 --



More information about the ghc-commits mailing list