-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Finding out the full path of the executable. -- -- The documentation of System.Environment.getProgName says that -- "However, this is hard-to-impossible to implement on some non-Unix -- OSes, so instead, for maximum portability, we just return the leafname -- of the program as invoked." This library tries to provide the missing -- path. @package executable-path @version 0.0.2 -- | The documentation of System.Environment.getProgName says that -- -- "However, this is hard-to-impossible to implement on some non-Unix -- OSes, so instead, for maximum portability, we just return the leafname -- of the program as invoked. Even then there are some differences -- between platforms: on Windows, for example, a program invoked as foo -- is probably really FOO.EXE, and that is what getProgName will -- return." -- -- This library tries to fix this issue. It also provides some -- platform-specific functions (most notably getting the path of the -- application bundle on OSX). Supported operating systems: -- -- module System.Environment.Executable getExecutablePath :: IO FilePath splitExecutablePath :: IO (FilePath, FilePath)