Module System.Path

Library to support operations related to the program execution path, i.e., environment variable PATH.

Author: Michael Hanus

Version: November 2018

Summary of exported operations:

dirsInPath :: IO [String]  Deterministic 
Returns the list of the directories of the environment variable PATH.
fileInPath :: String -> IO Bool  Deterministic 
Checks whether a file exists in one of the directories of the environment variable PATH.
getFileInPath :: String -> IO (Maybe String)  Deterministic 
Checks whether a file exists in one of the directories of the environment variable PATH and returns its absolute path, otherwise returns Nothing.

Exported operations:

dirsInPath :: IO [String]  Deterministic 

Returns the list of the directories of the environment variable PATH.

fileInPath :: String -> IO Bool  Deterministic 

Checks whether a file exists in one of the directories of the environment variable PATH.

getFileInPath :: String -> IO (Maybe String)  Deterministic 

Checks whether a file exists in one of the directories of the environment variable PATH and returns its absolute path, otherwise returns Nothing.