summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHécate <hecate+gitlab@glitchbra.in>2020-05-07 20:31:02 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-05-13 20:05:28 -0400
commitb17574f74173d0fa83b0def070dcba51b710be2e (patch)
tree77067f288e01a4e27ef47485618e39ade73a218c
parent102cfd6784d16a0d0cc8bdf42d4de4c7b8dd0190 (diff)
downloadhaskell-b17574f74173d0fa83b0def070dcba51b710be2e.tar.gz
fix(documentation): Fix the RST links to GHC.Prim
-rw-r--r--docs/users_guide/editing-guide.rst2
-rw-r--r--docs/users_guide/exts/ffi.rst2
-rw-r--r--docs/users_guide/exts/primitives.rst5
3 files changed, 4 insertions, 5 deletions
diff --git a/docs/users_guide/editing-guide.rst b/docs/users_guide/editing-guide.rst
index 4d6c22dcc8..737abd3b2e 100644
--- a/docs/users_guide/editing-guide.rst
+++ b/docs/users_guide/editing-guide.rst
@@ -228,7 +228,7 @@ For instance,
.. code-block:: rest
- See the documentation for :base-ref:`Control.Applicative <Control-Applicative.html>`
+ See the documentation for :base-ref:`Control.Applicative.`
for details.
Math
diff --git a/docs/users_guide/exts/ffi.rst b/docs/users_guide/exts/ffi.rst
index 4e66dc2ab9..fb0ea38f08 100644
--- a/docs/users_guide/exts/ffi.rst
+++ b/docs/users_guide/exts/ffi.rst
@@ -1027,7 +1027,7 @@ Pinned Byte Arrays
A pinned byte array is one that the garbage collector is not allowed
to move. Consequently, it has a stable address that can be safely
requested with ``byteArrayContents#``. There are a handful of
-primitive functions in :ghc-prim-ref:`GHC.Prim <GHC-Prim.html>`
+primitive functions in :ghc-prim-ref:`GHC.Prim.`
used to enforce or check for pinnedness: ``isByteArrayPinned#``,
``isMutableByteArrayPinned#``, and ``newPinnedByteArray#``. A
byte array can be pinned as a result of three possible causes:
diff --git a/docs/users_guide/exts/primitives.rst b/docs/users_guide/exts/primitives.rst
index f8580c9685..57fe6adc79 100644
--- a/docs/users_guide/exts/primitives.rst
+++ b/docs/users_guide/exts/primitives.rst
@@ -12,9 +12,8 @@ you write will be optimised to the efficient unboxed version in any
case. And if it isn't, we'd like to know about it.
All these primitive data types and operations are exported by the
-library ``GHC.Prim``, for which there is
-:ghc-prim-ref:`detailed online documentation <GHC.Prim.>`. (This
-documentation is generated from the file ``compiler/GHC/Builtin/primops.txt.pp``.)
+library :ghc-prim-ref:`GHC.Prim.`. (This documentation is generated from
+the file ``compiler/GHC/Builtin/primops.txt.pp``.)
If you want to mention any of the primitive data types or operations in
your program, you must first import ``GHC.Prim`` to bring them into