[commit: ghc] master: ghci users guide: mention "~" expansion in :add (bb1c660)

git at git.haskell.org git at git.haskell.org
Thu Feb 23 22:27:13 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/bb1c660f3e0f1b471eb74cbb02275b97db3fa8b4/ghc

>---------------------------------------------------------------

commit bb1c660f3e0f1b471eb74cbb02275b97db3fa8b4
Author: Chris Martin <ch.martin at gmail.com>
Date:   Thu Feb 23 13:52:51 2017 -0500

    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


>---------------------------------------------------------------

bb1c660f3e0f1b471eb74cbb02275b97db3fa8b4
 docs/users_guide/ghci.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/users_guide/ghci.rst b/docs/users_guide/ghci.rst
index d7f6b4b..864ae80 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



More information about the ghc-commits mailing list