Commit b17574f7 authored by Hécate Moonlight's avatar Hécate Moonlight Committed by Marge Bot

fix(documentation): Fix the RST links to GHC.Prim

parent 102cfd67
......@@ -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.
......@@ -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:
......@@ -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
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