[commit: ghc] ghc-7.6: document special "this" syntax for PackageImports (#7409) (de6bfe0)

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : ghc-7.6

http://hackage.haskell.org/trac/ghc/changeset/de6bfe043e1d98a7459642e4d1b6077533d347eb

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

commit de6bfe043e1d98a7459642e4d1b6077533d347eb
Author: Simon Marlow <[email protected]>
Date:   Tue Dec 11 09:20:24 2012 +0000

    document special "this" syntax for PackageImports (#7409)

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

 docs/users_guide/glasgow_exts.xml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml
index 2a1002a..1c308cb 100644
--- a/docs/users_guide/glasgow_exts.xml
+++ b/docs/users_guide/glasgow_exts.xml
@@ -1999,6 +1999,9 @@ import "network" Network.Socket
     available from multiple packages, or is present in both the
     current package being built and an external package.</para>
 
+  <para>The special package name <literal>this</literal> can be used to
+    refer to the current package being built.</para>
+
   <para>Note: you probably don't need to use this feature, it was
     added mainly so that we can build backwards-compatible versions of
     packages when APIs change.  It can lead to fragile dependencies in
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.