unliftio-0.2.23.0: The MonadUnliftIO typeclass for unlifting monads to IO (batteries included)
Safe Haskell Safe-Inferred
Language Haskell2010

UnliftIO.Directory

Description

Unlifted System.Directory .

Since: 0.2.6.0

Synopsis

Actions on directories

createFileLink Source #

Arguments

:: MonadIO m
=> FilePath

path to the target file

-> FilePath

path of the link to be created

-> m ()

Lifted createFileLink . directory package version should be >= 1.3.1. @since 0.2.16.0

Current working directory

Pre-defined directories

data XdgDirectory Source #

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 usually map to the same directory.

Since: directory-1.2.3.0

Constructors

XdgData

For data files (e.g. images). It uses the XDG_DATA_HOME environment variable. On non-Windows systems, the default is ~/.local/share . On Windows, the default is %APPDATA% (e.g. C:/Users/ <user> /AppData/Roaming ). Can be considered as the user-specific equivalent of /usr/share .

XdgConfig

For configuration files. It uses the XDG_CONFIG_HOME environment variable. On non-Windows systems, the default is ~/.config . On Windows, the default 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). It uses the XDG_CACHE_HOME environment variable. On non-Windows systems, the default is ~/.cache . On Windows, the default is %LOCALAPPDATA% (e.g. C:/Users/ <user> /AppData/Local ). Can be considered as the user-specific equivalent of /var/cache .

Instances

Instances details
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

data XdgDirectoryList Source #

Search paths for various application data, as specified by the XDG Base Directory Specification .

The list of paths is split using searchPathSeparator , which on Windows is a semicolon.

Note: On Windows, XdgDataDirs and XdgConfigDirs usually yield the same result.

Since: directory-1.3.2.0

Constructors

XdgDataDirs

For data files (e.g. images). It uses the XDG_DATA_DIRS environment variable. On non-Windows systems, the default is /usr/local/share/ and /usr/share/ . On Windows, the default is %PROGRAMDATA% or %ALLUSERSPROFILE% (e.g. C:/ProgramData ).

XdgConfigDirs

For configuration files. It uses the XDG_CONFIG_DIRS environment variable. On non-Windows systems, the default is /etc/xdg . On Windows, the default is %PROGRAMDATA% or %ALLUSERSPROFILE% (e.g. C:/ProgramData ).

Instances

Instances details
Bounded XdgDirectoryList
Instance details

Defined in System.Directory.Internal.Common

Enum XdgDirectoryList
Instance details

Defined in System.Directory.Internal.Common

Eq XdgDirectoryList
Instance details

Defined in System.Directory.Internal.Common

Ord XdgDirectoryList
Instance details

Defined in System.Directory.Internal.Common

Read XdgDirectoryList
Instance details

Defined in System.Directory.Internal.Common

Show XdgDirectoryList
Instance details

Defined in System.Directory.Internal.Common

Actions on files

exeExtension :: String Source #

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

Existence tests

Symbolic links

Permissions

Timestamps