Some operations to handle the cpm-query
resource configuration file
that is stored in $HOME/.cpmqueryrc
Author: Michael Hanus
Version: January 2025
readRC
:: IO [(String,String)]
Reads the rc file. |
rcValue
:: [(String,String)] -> String -> String
Look up a configuration variable in the list of variables from the rc file. |
Reads the rc file. If it is not present, a new file will be created
with the contents of |
Look up a configuration variable in the list of variables from the rc file. Uppercase/lowercase is ignored for the variable names and the empty string is returned for an undefined variable. |