[Haskell-cafe] Setting environment variables on Windows

Sönke Hahn shahn at cs.tu-berlin.de
Fri Oct 9 11:37:16 EDT 2009


Hi!

I need to set an environment variable from Haskell and i would like to do that 
cross-platform. There is System.Posix.Env.setEnv, which does exactly, what i 
want on Linux. There is the module System.Environment, which seems to be 
cross-platform, but it does not contain functions to manipulate the 
environment (, just to inspect it). At first glance, I didn't find anything 
relevant in the sub-modules of System.Win32.

Is this just not implemented? How could i implement it myself? 

Grateful for any comment,

Sönke


More information about the Haskell-Cafe mailing list