Improve System.Environment haddocks

Gwern Branwen gwern0 at gmail.com
Mon Nov 28 00:11:59 CET 2011


17:52:34 < goodgrue> Is there a way to change the environment
variables associated with Xmonad.Prompt.Shell at runtime?  e.g. I'd
like to be able to modify $http_proxy and have that affect
subsequently launched processes.
17:55:31 < gwern> goodgrue: that'd be kind of hard. you could prepend
a mpodification of $HTTP_PROXY to each command
17:56:10 < gwern> ideally you'd modify xmonad's own environment
17:56:33 < goodgrue> gwern: yeah, the latter is what I was thinking
of. is that possible?
17:57:08 < gwern> shell uses `getEnv` from System.Environment but
there's no setEnv!
17:57:21 < gwern> if there were, you could probably bind it to a key
and use a prompt
17:58:44 < goodgrue> Hm...sounds like this may be a nice piece of
missing functionality. is there any reason you can think of that i
wouldn't be able to implement setEnv myself?
17:59:04 < gwern> http://hackage.haskell.org/trac/ghc/ticket/3587
17:59:14 < gwern> looks like 'putEnv' may be the real name

-- 
gwern
http://www.gwern.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-System.Environment-improve-getEnv-doc-to-mention-clo.patch
Type: text/x-patch
Size: 2239 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/libraries/attachments/20111127/983098f8/attachment.bin>


More information about the Libraries mailing list