[commit: base] master: System.Environment: improve 'getEnv' doc to mention closest 'setEnv' we have ('System.Posix.putEnv') (c4d6512)

Simon Marlow marlowsd at gmail.com
Mon Feb 13 14:48:29 CET 2012


Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/c4d65123b7cc9d4cacffdcae572d276605cf87b4

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

commit c4d65123b7cc9d4cacffdcae572d276605cf87b4
Author: gwern <gwern0 at gmail.com>
Date:   Sun Nov 27 18:08:09 2011 -0500

    System.Environment: improve 'getEnv' doc to mention closest 'setEnv' we have ('System.Posix.putEnv')

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

 System/Environment.hs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/System/Environment.hs b/System/Environment.hs
index c4988af..d5bc1ad 100644
--- a/System/Environment.hs
+++ b/System/Environment.hs
@@ -180,7 +180,8 @@ basename f = go f f
 
 
 -- | Computation 'getEnv' @var@ returns the value
--- of the environment variable @var at .  
+-- of the environment variable @var at . For the inverse, POSIX users
+-- can use 'System.Posix.Env.putEnv'.
 --
 -- This computation may fail with:
 --
@@ -340,4 +341,3 @@ divvy str =
     (xs,[])        -> (xs,[]) -- don't barf (like Posix.getEnvironment)
     (name,_:value) -> (name,value)
 #endif  /* __GLASGOW_HASKELL__ */
-





More information about the Cvs-libraries mailing list