system-argv0-0.1.1: Get argv[0] as a FilePath.
System.Argv0
Synopsis
getArgv0 :: IO FilePathSource
Get argv[0] as a FilePath. This is how the program was invoked, and might not correspond to any actual file.
argv[0]
FilePath
Use this instead of System.Environment.getProgName if you want the full path, and not just the last component.
System.Environment.getProgName