<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 4, 2013 at 8:38 AM, Benjamin Franksen <span dir="ltr"><<a href="mailto:benjamin.franksen@helmholtz-berlin.de" target="_blank">benjamin.franksen@helmholtz-berlin.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2o5" style="overflow:hidden">Module System.Posix.Directory of the unix package defines<br>
<br>
  getWorkingDirectory :: IO FilePath<br>
  changeWorkingDirectory :: FilePath -> IO ()<br>
<br>
I believe the functionality is quite portable and not limited to unix-like<br>
systems. I know that e.g. Windows has chdir and getcwd. Module Filesystem of<br>
the system-fileio package has<br></div></blockquote></div><br>The functionality is similar but different, insofar as Windows still has legacy drive paths and the current directory is maintained separately for each one; I would expect this to be exposed in a Windows version.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">That said, there are already setCurrentDirectory and getCurrentDirectory in System.Directory for portable versions.<br><div><br></div>-- <br><div dir="ltr"><div>
brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div></div>