Re: [Haskell-cafe] Setting environment variables on Windows

2009-10-14 Thread Sönke Hahn
On Wednesday 14 October 2009 04:50:56 pm Sönke Hahn wrote: > On Friday 09 October 2009 07:19:30 pm Peter Verswyvelen wrote: > > Mmm, that seems like a shortcoming. > > > > Well, you could just wrap the C functions yourself, like this (two > > possibilities, no error checking yet, quick hack): > > h

Re: [Haskell-cafe] Setting environment variables on Windows

2009-10-14 Thread Sönke Hahn
On Friday 09 October 2009 07:19:30 pm Peter Verswyvelen wrote: > Mmm, that seems like a shortcoming. > > Well, you could just wrap the C functions yourself, like this (two > possibilities, no error checking yet, quick hack): > http://hpaste.org/fastcgi/hpaste.fcgi/view?id=10565#a10565 > > Note th

Re: [Haskell-cafe] Setting environment variables on Windows

2009-10-14 Thread Sönke Hahn
On Friday 09 October 2009 07:07:21 pm Duncan Coutts wrote: > On Fri, 2009-10-09 at 17:37 +0200, Sönke Hahn wrote: > > 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

Re: [Haskell-cafe] Setting environment variables on Windows

2009-10-09 Thread Duncan Coutts
On Fri, 2009-10-09 at 17:37 +0200, Sönke Hahn wrote: > 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

Re: [Haskell-cafe] Setting environment variables on Windows

2009-10-09 Thread Peter Verswyvelen
Mmm, that seems like a shortcoming. Well, you could just wrap the C functions yourself, like this (two possibilities, no error checking yet, quick hack): http://hpaste.org/fastcgi/hpaste.fcgi/view?id=10565#a10565 Note that using SetEnvironmentVariable does not seem to be compatible with getEnv, b

[Haskell-cafe] Setting environment variables on Windows

2009-10-09 Thread Sönke Hahn
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 manipulat