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]   
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.

Exported operations:

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.