[commit: ghc] master: User guide entry for `:shows paths` sub-command (b982ab4)

git at git.haskell.org git at git.haskell.org
Tue Aug 27 23:37:58 CEST 2013


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

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

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

commit b982ab40843f360fa12a638758ee91322526625d
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Tue Aug 27 22:45:45 2013 +0200

    User guide entry for `:shows paths` sub-command
    
    This also adds an entry to the release notes section.
    
    See #8172 for more details
    
    Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>


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

b982ab40843f360fa12a638758ee91322526625d
 docs/users_guide/7.8.1-notes.xml |    7 +++++++
 docs/users_guide/ghci.xml        |   17 ++++++++++++++++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/docs/users_guide/7.8.1-notes.xml b/docs/users_guide/7.8.1-notes.xml
index f3fa0e1..6b5830e 100644
--- a/docs/users_guide/7.8.1-notes.xml
+++ b/docs/users_guide/7.8.1-notes.xml
@@ -211,6 +211,13 @@
                     TODO FIXME: reference.
                </para>
            </listitem>
+           <listitem>
+                <para>
+                    The new <literal>:shows paths</literal> command
+                    shows the current working directory and the
+                    current search path for Haskell modules.
+               </para>
+           </listitem>
        </itemizedlist>
     </sect3>
 
diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml
index df483e8..7792da2 100644
--- a/docs/users_guide/ghci.xml
+++ b/docs/users_guide/ghci.xml
@@ -2154,7 +2154,9 @@ maybe :: b -> (a -> b) -> Maybe a -> b
 	  &lsquo;<literal>&tilde;</literal>&rsquo; symbol at the
 	  beginning of <replaceable>dir</replaceable> will be replaced
 	  by the contents of the environment variable
-	  <literal>HOME</literal>.</para>
+	  <literal>HOME</literal>.
+          See also the <literal>:show paths</literal> command for
+          showing the current working directory.</para>
 
 	  <para>NOTE: changing directories causes all currently loaded
 	  modules to be unloaded.  This is because the search path is
@@ -2922,6 +2924,19 @@ bar
       </varlistentry>
 
       <varlistentry>
+        <term>
+          <literal>:show paths</literal>
+          <indexterm><primary><literal>:show paths</literal></primary></indexterm>
+        </term>
+        <listitem>
+          <para>Show the current working directory (as set via
+          <literal>:cd</literal> command), as well as the list of
+          directories searched for source files (as set by the
+          <option>-i</option> option).</para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
 	<term>
           <literal>:show language</literal>
           <indexterm><primary><literal>:show language</literal></primary></indexterm>





More information about the ghc-commits mailing list