summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <siarheit@google.com>2015-12-03 21:07:19 +0000
committerSergei Trofimovich <siarheit@google.com>2015-12-03 21:11:35 +0000
commita034031a102bc08c76a6cdb104b72922ae22c96b (patch)
tree1f51213e12b3c6a151f6b567d0941cdfbff8c4a3
parent43a31fe4c0cc0f72dfe9e0c96e1576f5cfba6e19 (diff)
downloadhaskell-a034031a102bc08c76a6cdb104b72922ae22c96b.tar.gz
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@google.com>
-rw-r--r--docs/users_guide/extending_ghc.rst2
-rw-r--r--docs/users_guide/glasgow_exts.rst2
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/users_guide/extending_ghc.rst b/docs/users_guide/extending_ghc.rst
index efe18b0a3f..a0c3bd1665 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 4513f7483c..93261a2227 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
----------------------