@@ -95,24 +95,27 @@ Directory Specification, as listed below.
95
95
Directories
96
96
-----------
97
97
98
- Unless the ``CABAL_DIR `` environment variable is set or `~/.cabal ` exists, Cabal will store
99
- data in directories according to the XDG Base Directory Specification.
100
- The following directories are used:
98
+ Unless the ``CABAL_DIR `` environment variable is set or a ``~/.cabal ``
99
+ directory exists, Cabal will by default store data in directories
100
+ according to the XDG Base Directory Specification. The following
101
+ directories are used unless otherwise specified in the configuration
102
+ file:
101
103
102
- * ``$XDG_CONFIG_HOME/cabal `` for the main configuration file. On
103
- Unix, this defaults to ``~/.config/cabal ``. On Windows this defaults to
104
- `` %APPDATA%/cabal `` . Overridden by the ``CABAL_CONFIG `` environment
105
- variable if set.
104
+ * ``$XDG_CONFIG_HOME/cabal `` for the main configuration file.
105
+ Defaults to ``~/.config/cabal `` on Unix, and `` %APPDATA%/cabal `` on
106
+ Windows . Overridden by the ``CABAL_CONFIG `` environment variable if
107
+ set.
106
108
107
109
* ``$XDG_CACHE_HOME/cabal `` for downloaded packages and script
108
110
executables. Defaults to ``~/.cache/cabal `` on Unix, and
109
111
``%LOCALAPPDATA%/cabal `` on Windows. You can delete this directory
110
112
and expect that its contents will be reconstructed as needed.
111
113
112
114
* ``$XDG_STATE_HOME/cabal `` for compiled libraries and other stateful
113
- artifacts. Defaults to ``~/.local/state/cabal `` on Unix and
114
- ``%LOCALAPPDATA%/cabal `` on Windows. Deleting this directory might
115
- cause installed programs to stop working.
115
+ artifacts, including the Cabal store. Defaults to
116
+ ``~/.local/state/cabal `` on Unix and ``%LOCALAPPDATA%/cabal `` on
117
+ Windows. Deleting this directory might cause installed programs to
118
+ stop working.
116
119
117
120
* ``~/.local/bin `` for executables installed with ``cabal install ``.
118
121
0 commit comments