Commit a034031a authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

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: default avatarSergei Trofimovich <siarheit@google.com>
parent 43a31fe4
......@@ -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.
......
......@@ -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
----------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment