#3587: provide a cross-platform way to set environment variables
---------------------------------+------------------------------------------
Reporter:  shahn                 |          Owner:                  
    Type:  task                  |         Status:  new             
Priority:  normal                |      Component:  libraries/base  
 Version:  6.10.4                |       Severity:  minor           
Keywords:  environment variable  |       Testcase:                  
      Os:  Unknown/Multiple      |   Architecture:  Unknown/Multiple
---------------------------------+------------------------------------------
 System.Environment contains cross-platform operations to query environment
 variables, not to modify them. System.Posix.Env (package unix) provides
 operations to set environment variables on Linux (and probably other
 unices). This ticket requests adding cross-platform operations to set env
 vars to the module System.Environment.

 As a workaround i copied the implementation of
 [http://hackage.haskell.org/packages/archive/unix/2.3.2.0/doc/html/src
 /System-Posix-Env.html#putEnv System.Posix.Env.putEnv] into a new module.
 That seems to work on windows and linux (for me. Maybe this is due to
 using mingw/msys, though).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3587>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to