Library to support operations related to the program execution path,
i.e., environment variable PATH
.
Author: Michael Hanus
Version: November 2018
dirsInPath
:: IO [String]
Returns the list of the directories of the environment variable PATH .
|
fileInPath
:: String -> IO Bool
Checks whether a file exists in one of the directories of the environment variable PATH .
|
getFileInPath
:: String -> IO (Maybe String)
Checks whether a file exists in one of the directories of the environment variable PATH
and returns its absolute path,
otherwise returns Nothing .
|
Returns the list of the directories of the environment variable |
Checks whether a file exists in one of the directories
of the environment variable |
Checks whether a file exists in one of the directories
of the environment variable |