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

Safe Haskell | None
Language | Haskell98

System.Environment.XDG.BaseDir

Synopsis

- getUserDataDir :: String -> IO FilePath
- getUserDataFile :: String -> String -> IO FilePath
- getUserConfigDir :: String -> IO FilePath
- getUserConfigFile :: String -> String -> IO FilePath
- getUserCacheDir :: String -> IO FilePath
- getUserCacheFile :: String -> String -> IO FilePath
- getSystemDataDirs :: String -> IO [FilePath]
- getSystemDataFiles :: String -> String -> IO [FilePath]
- getSystemConfigDirs :: String -> IO [FilePath]
- getSystemConfigFiles :: String -> String -> IO [FilePath]
- getAllDataDirs :: String -> IO [FilePath]
- getAllDataFiles :: String -> String -> IO [FilePath]
- getAllConfigDirs :: String -> IO [FilePath]
- getAllConfigFiles :: String -> String -> IO [FilePath]

# Documentation

getUserDataDir :: String -> IO FilePath Source #

Get the directory for user-specific data files.

getUserDataFile :: String -> String -> IO FilePath Source #

Get the path to a specific user data file.

getUserConfigDir :: String -> IO FilePath Source #

Get the directory for user-specific configuration files.

getUserConfigFile :: String -> String -> IO FilePath Source #

Get the path to a specific user configuration file.

getUserCacheDir :: String -> IO FilePath Source #

Get the directory for user-specific cache files.

getUserCacheFile :: String -> String -> IO FilePath Source #

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.