summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Martin <ch.martin@gmail.com>2017-02-23 13:52:51 -0500
committerBen Gamari <ben@smart-cactus.org>2017-02-23 17:26:44 -0500
commitbb1c660f3e0f1b471eb74cbb02275b97db3fa8b4 (patch)
tree71dc37894489423f218c564f66bf78f346886fee
parent6ca6a360c2b71d7e0c77a819dc463b37efe7a39d (diff)
downloadhaskell-bb1c660f3e0f1b471eb74cbb02275b97db3fa8b4.tar.gz
ghci users guide: mention "~" expansion in :add
I discovered this feature via Stack Overflow. https://stackoverflow.com/questions/42310399 Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D3150
-rw-r--r--docs/users_guide/ghci.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/users_guide/ghci.rst b/docs/users_guide/ghci.rst
index d7f6b4b0eb..864ae80bd4 100644
--- a/docs/users_guide/ghci.rst
+++ b/docs/users_guide/ghci.rst
@@ -2045,6 +2045,10 @@ commonly used commands.
available, or otherwise the module will be compiled to byte-code.
Using the ``*`` prefix forces the module to be loaded as byte-code.
+ ⟨module⟩ may be a file path. A "``~``" symbol at the beginning of
+ ⟨module⟩ will be replaced by the contents of the environment variable
+ :envvar:`HOME`.
+
.. ghci-cmd:: :all-types
List all types collected for expressions and (local) bindings