[commit: ghc] master: extending_ghc.rst: fix broken link (Trac #10950) (a034031)

git at git.haskell.org git at git.haskell.org
Thu Dec 3 21:11:47 UTC 2015


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

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

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

commit a034031a102bc08c76a6cdb104b72922ae22c96b
Author: Sergei Trofimovich <siarheit at google.com>
Date:   Thu Dec 3 21:07:19 2015 +0000

    extending_ghc.rst: fix broken link (Trac #10950)
    
    The error exibits as build failures
    of two types:
    
      1. extending_ghc.rst:: ERROR:
          Anonymous hyperlink mismatch:
            1 references but 0 targets.
          See "backrefs" attribute for IDs.
    
      2. reading sources... [ 33%] glasgow_exts
           Exception occurred:
              pickle.dump(doctree, f, pickle.HIGHEST_PROTOCOL)
           RecursionError: maximum recursion depth exceeded
           while pickling an object
    
    Broken link created circular reference and failed to
    serialize the result.
    
    Fixed the problem by pointing to relevant section.
    
    Signed-off-by: Sergei Trofimovich <siarheit at google.com>


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

a034031a102bc08c76a6cdb104b72922ae22c96b
 docs/users_guide/extending_ghc.rst | 2 +-
 docs/users_guide/glasgow_exts.rst  | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/docs/users_guide/extending_ghc.rst b/docs/users_guide/extending_ghc.rst
index efe18b0..a0c3bd1 100644
--- a/docs/users_guide/extending_ghc.rst
+++ b/docs/users_guide/extending_ghc.rst
@@ -58,7 +58,7 @@ A number of restrictions apply to use of annotations:
 -  The expression you are annotating with must have a type with
    ``Typeable`` and ``Data`` instances
 
--  The `Template Haskell staging restrictions <>`__ apply to the
+-  The :ref:`Template Haskell staging restrictions <th-usage>` apply to the
    expression being annotated with, so for example you cannot run a
    function from the module being compiled.
 
diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst
index 4513f74..93261a2 100644
--- a/docs/users_guide/glasgow_exts.rst
+++ b/docs/users_guide/glasgow_exts.rst
@@ -9772,6 +9772,8 @@ The syntax for a declaration splice uses "``$``" not "``splice``". The type of
 the enclosed expression must be ``Q [Dec]``, not ``[Q Dec]``. Typed expression
 splices and quotations are supported.)
 
+.. _th-usage:
+
 Using Template Haskell
 ----------------------
 



More information about the ghc-commits mailing list