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

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

parent 102cfd67
...@@ -228,7 +228,7 @@ For instance, ...@@ -228,7 +228,7 @@ For instance,
.. code-block:: rest .. code-block:: rest
See the documentation for :base-ref:`Control.Applicative <Control-Applicative.html>` See the documentation for :base-ref:`Control.Applicative.`
for details. for details.
Math Math
......
...@@ -1027,7 +1027,7 @@ Pinned Byte Arrays ...@@ -1027,7 +1027,7 @@ Pinned Byte Arrays
A pinned byte array is one that the garbage collector is not allowed 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 to move. Consequently, it has a stable address that can be safely
requested with ``byteArrayContents#``. There are a handful of 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#``, used to enforce or check for pinnedness: ``isByteArrayPinned#``,
``isMutableByteArrayPinned#``, and ``newPinnedByteArray#``. A ``isMutableByteArrayPinned#``, and ``newPinnedByteArray#``. A
byte array can be pinned as a result of three possible causes: 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 ...@@ -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. case. And if it isn't, we'd like to know about it.
All these primitive data types and operations are exported by the All these primitive data types and operations are exported by the
library ``GHC.Prim``, for which there is library :ghc-prim-ref:`GHC.Prim.`. (This documentation is generated from
:ghc-prim-ref:`detailed online documentation <GHC.Prim.>`. (This the file ``compiler/GHC/Builtin/primops.txt.pp``.)
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 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 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