xdg-basedir-0.2.2: A basic implementation of the XDG Base Directory specification.

Safe HaskellSafe-Inferred

System.Environment.XDG.BaseDir

Synopsis

Documentation

getUserDataDir :: String -> IO FilePathSource

Get the directory for user-specific data files.

getUserDataFile :: String -> String -> IO FilePathSource

Get the path to a specific user data file.

getUserConfigDir :: String -> IO FilePathSource

Get the directory for user-specific configuration files.

getUserConfigFile :: String -> String -> IO FilePathSource

Get the path to a specific user configuration file.

getUserCacheDir :: String -> IO FilePathSource

Get the directory for user-specific cache files.

getUserCacheFile :: String -> String -> IO FilePathSource

Get the path to a specific user cache file.

getSystemDataDirs :: String -> IO [FilePath]Source

Get a list of the system-wide data directories.

getSystemDataFiles :: String -> String -> IO [FilePath]Source

Get a list of all paths for a specific system data file.

getSystemConfigDirs :: String -> IO [FilePath]Source

Get a list of the system-wide configuration directories.

getSystemConfigFiles :: String -> String -> IO [FilePath]Source

Get a list of all paths for a specific system configuration file.

getAllDataDirs :: String -> IO [FilePath]Source

Get a list of all data directories.

getAllDataFiles :: String -> String -> IO [FilePath]Source

Get a list of all paths for a specific data file.

getAllConfigDirs :: String -> IO [FilePath]Source

Get a list of all configuration directories.

getAllConfigFiles :: String -> String -> IO [FilePath]Source

Get a list of all paths for a specific configuration file.