Add System.Environment.getExecutablePath
As agreed after the corresponding libraries@ discussion (http://thread.gmane.org/gmane.comp.lang.haskell.libraries/17368) we should add System.Environment.getExecutablePath
. Attached is an implementation for OS X, Linux, and Windows, with a fallback to argv[0] on other platforms.
The Windows implementation was written without access to a Windows machine, so someone will need to test it on Windows to make sure it compiles/works.
Trac metadata
Trac field | Value |
---|---|
Version | 7.4.2 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/base |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |