Module CPM.Executables

Some auxiliary operations to deal with executables (system commands) used by CPM.

Summary of exported operations:

checkRequiredExecutables :: ErrorLogger ()  Deterministic 
Check whether all operating system executables required by CPM are present on the current system.
getCurlCmd :: ErrorLogger String  Deterministic 
Returns the curl command.
getCurryCheck :: Config -> ErrorLogger (Maybe String)  Deterministic 
Returns the curry-check command, either from the current path or from CPM's bin directory, or Nothing if it does not exist.
getCurryDoc :: Config -> ErrorLogger String  Deterministic 
Returns the curry-doc command, either from the current path or from CPM's bin directory.

Exported operations:

checkRequiredExecutables :: ErrorLogger ()  Deterministic 

Check whether all operating system executables required by CPM are present on the current system. Since this takes some time, it is only checked with CPM's update command.

getCurlCmd :: ErrorLogger String  Deterministic 

Returns the curl command. If the log level is not Debug, the option -s is added so that curl works in silent mode.

getCurryCheck :: Config -> ErrorLogger (Maybe String)  Deterministic 

Returns the curry-check command, either from the current path or from CPM's bin directory, or Nothing if it does not exist. If it does not exist, report this also as an info.

getCurryDoc :: Config -> ErrorLogger String  Deterministic 

Returns the curry-doc command, either from the current path or from CPM's bin directory. Fails with an error if it does not exist.