Finding out the full path of the executable.


Version on this page:0.0.3
LTS Haskell 17.11:
Stackage Nightly 2021-05-15:
Latest on Hackage:

See all snapshots executable-path appears in

LicenseRef-PublicDomain licensed by Balazs Komuves
Maintained by bkomuves (plus) hackage (at) gmail (dot) com
This version can be pinned in stack with:executable-path-0.0.3@sha256:fe85fdc653dcf564a1a6560817da259a083c55f103db90d40e54be729b18575d,1953

Module documentation for 0.0.3

  • System
    • System.Environment
      • System.Environment.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.