summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMon Aaraj <mon.aaraj815@gmail.com>2022-09-20 01:54:15 +0300
committerMon Aaraj <mon.aaraj815@gmail.com>2022-09-21 06:41:24 +0300
commita971657d5c4e919a8d446386374e5ed491e9f6b9 (patch)
tree5e24b72016d6e07cbd30e4285a9b2a6beddf65df
parentc8ae3add11969b5128f34d02a5582c1f007cce5c (diff)
downloadhaskell-a971657d5c4e919a8d446386374e5ed491e9f6b9.tar.gz
users-guide: fix incorrect ghcappdata folder for unix and windows
-rw-r--r--docs/users_guide/ghci.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/users_guide/ghci.rst b/docs/users_guide/ghci.rst
index a8ac5fd2bb..ce384ade79 100644
--- a/docs/users_guide/ghci.rst
+++ b/docs/users_guide/ghci.rst
@@ -3295,13 +3295,12 @@ reads and executes commands from the following files, in this order, if
they exist:
1. :file:`{ghcappdata}/ghci.conf`, where ⟨ghcappdata⟩ depends on
- your system, but is usually something like :file:`$HOME/.ghc` on
- Unix or :file:`C:/Documents and Settings/user/Application
- Data/ghc` on Windows.
+ your system, but is usually something like :file:`$HOME/.ghc` or
+ :file:`$XDG_CONFIG_HOME/ghc` on Unix or
+ :file:`C:\\Users\\{username}\\AppData\\Roaming\\ghc` on
+ Windows.
-2. :file:`$XDG_CONFIG_HOME/.ghci`
-
-3. :file:`./.ghci`
+2. :file:`./.ghci`
The :file:`ghci.conf` file is most useful for turning on favourite options
(e.g. ``:set +s``), and defining useful macros.