unliftio-path-0.0.2.0: UnliftIO using well-typed Paths.

LicenseMIT
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

UnliftIO.Path.Directory

Description

`UnliftIO.Directory lifted to Path.

Synopsis

Documentation

removePathForcibly :: MonadIO m => Path b t -> m () Source #

renameDirectory :: MonadIO m => Path b Dir -> Path b' Dir -> m () Source #

data XdgDirectory #

Special directories for storing user-specific application data, configuration, and cache files, as specified by the XDG Base Directory Specification.

Note: On Windows, XdgData and XdgConfig map to the same directory.

Since: directory-1.2.3.0

Constructors

XdgData

For data files (e.g. images). Defaults to ~/.local/share and can be overridden by the XDG_DATA_HOME environment variable. On Windows, it is %APPDATA% (e.g. C:/Users/<user>/AppData/Roaming). Can be considered as the user-specific equivalent of /usr/share.

XdgConfig

For configuration files. Defaults to ~/.config and can be overridden by the XDG_CONFIG_HOME environment variable. On Windows, it is %APPDATA% (e.g. C:/Users/<user>/AppData/Roaming). Can be considered as the user-specific equivalent of /etc.

XdgCache

For non-essential files (e.g. cache). Defaults to ~/.cache and can be overridden by the XDG_CACHE_HOME environment variable. On Windows, it is %LOCALAPPDATA% (e.g. C:/Users/<user>/AppData/Local). Can be considered as the user-specific equivalent of /var/cache.

Instances
Bounded XdgDirectory 
Instance details

Defined in System.Directory.Internal.Common

Enum XdgDirectory 
Instance details

Defined in System.Directory.Internal.Common

Eq XdgDirectory 
Instance details

Defined in System.Directory.Internal.Common

Ord XdgDirectory 
Instance details

Defined in System.Directory.Internal.Common

Read XdgDirectory 
Instance details

Defined in System.Directory.Internal.Common

Show XdgDirectory 
Instance details

Defined in System.Directory.Internal.Common

removeFile :: MonadIO m => Path b File -> m () Source #

renameFile :: MonadIO m => Path b File -> Path b' File -> m () Source #

renamePath :: MonadIO m => Path b t -> Path b' t -> m () Source #

copyFile :: MonadIO m => Path b File -> Path b' File -> m () Source #

exeExtension :: String #

Filename extension for executable files (including the dot if any) (usually "" on POSIX systems and ".exe" on Windows or OS/2).

Since: directory-1.2.4.0

copyPermissions :: MonadIO m => Path b t -> Path b' t' -> m () Source #

setAccessTime :: MonadIO m => Path b t -> UTCTime -> m () Source #