[GHC] #7029: Add System.Environment.getExecutablePath

GHC cvs-ghc at haskell.org
Tue Jun 26 08:04:11 CEST 2012


#7029: Add System.Environment.getExecutablePath
------------------------------+---------------------------------------------
 Reporter:  tibbe             |          Owner:                  
     Type:  feature request   |         Status:  new             
 Priority:  normal            |      Component:  libraries/base  
  Version:  7.4.2             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7029>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list