summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEugene Akentyev <ak3ntev@gmail.com>2016-08-31 14:31:39 -0400
committerBen Gamari <ben@smart-cactus.org>2016-08-31 14:31:45 -0400
commit1ad770f599a00e8f8919f7fcf4cf00800fd4d9ed (patch)
tree00301bfb6e907018107d14336761ef6ca27db5b7 /docs
parent9cfef167dc0b2bfa881c5d9eca38227fbdfd507c (diff)
downloadhaskell-1ad770f599a00e8f8919f7fcf4cf00800fd4d9ed.tar.gz
Add -flocal-ghci-history flag (#9089).
Reviewers: thomie, bgamari, austin Reviewed By: thomie, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2461 GHC Trac Issues: #9089
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/8.2.1-notes.rst2
-rw-r--r--docs/users_guide/ghci.rst11
2 files changed, 13 insertions, 0 deletions
diff --git a/docs/users_guide/8.2.1-notes.rst b/docs/users_guide/8.2.1-notes.rst
index fdd8f5c35a..1b4b34ed7b 100644
--- a/docs/users_guide/8.2.1-notes.rst
+++ b/docs/users_guide/8.2.1-notes.rst
@@ -43,6 +43,8 @@ GHCi
- TODO FIXME.
+- Added :ghc-flag:`-flocal-ghci-history` which uses current directory for `.ghci-history`.
+
Template Haskell
~~~~~~~~~~~~~~~~
diff --git a/docs/users_guide/ghci.rst b/docs/users_guide/ghci.rst
index 783059fe17..468f39edfe 100644
--- a/docs/users_guide/ghci.rst
+++ b/docs/users_guide/ghci.rst
@@ -1901,6 +1901,17 @@ Most of the command-line options accepted by GHC (see :ref:`using-ghc`)
also make sense in interactive mode. The ones that don't make sense are
mostly obvious.
+.. ghc-flag:: -flocal-ghci-history
+
+ By default, GHCi keeps global history in ``~/.ghc/ghci_history`` or
+ ``%APPDATA%/<app>/ghci_history``, but you can use current directory, e.g.:
+
+ .. code-block:: none
+
+ $ ghci -flocal-ghci-history
+
+ It will create ``.ghci-history`` in current folder where GHCi is launched.
+
Packages
~~~~~~~~