+1 (a no-brainer, in my opinion) --- although you can get rid of unsetEnv if you make setEnv take a &quot;Maybe String&quot;, which might be better. Ultimately though, who cares what color the bike shed is painted :)<br><br>
<div class="gmail_quote">On Wed, Oct 3, 2012 at 8:14 PM, Simon Hengel <span dir="ltr">&lt;<a href="mailto:sol@typeful.net" target="_blank">sol@typeful.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
setting environment variables is possible on both POSIX and Windows<br>
systems.  Currently this functionally is missing from<br>
System.Environment; the &quot;unix&quot; package provides an implementation for<br>
POSIX systems.<br>
<br>
I propose to add setEnv/unsetEnv to System.Environment, so that it is<br>
easier to write applications that behave the same on POSIX and Windows<br>
systems.<br>
<br>
I implemented both in a way, so that they behave exactly the same on<br>
POSIX and Windows (modulo case sensitivity on Windows).<br>
<br>
For now I prepared a standalone implementation [1] and corresponding<br>
tests [2].  That implementation depends on the &quot;unix&quot; package.  If the<br>
proposal is accepted, I will prepare a patch against &quot;base&quot; that<br>
includes the relevant code from &quot;unix&quot;.<br>
<br>
Discussion Period: 2 Weeks<br>
<br>
Cheers,<br>
Simon<br>
<br>
[1] <a href="https://github.com/sol/setenv/blob/master/src/System/SetEnv.hs" target="_blank">https://github.com/sol/setenv/blob/master/src/System/SetEnv.hs</a><br>
[2] <a href="https://github.com/sol/setenv/blob/master/test/System/SetEnvSpec.hs" target="_blank">https://github.com/sol/setenv/blob/master/test/System/SetEnvSpec.hs</a><br>
<br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Gregory Collins &lt;<a href="mailto:greg@gregorycollins.net" target="_blank">greg@gregorycollins.net</a>&gt;<br>