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 on Linux.
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 that
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):
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
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,
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 be