diff options
author | Takenobu Tani <takenobu.hs@gmail.com> | 2017-01-31 16:07:48 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-01-31 18:50:21 -0500 |
commit | b15136afb84a5193aa385ae7c635026aed54cf3b (patch) | |
tree | 2b4aea06ce35a095e2778eab2e718e5df384f2b2 /docs | |
parent | 4dfc6d1c40b298d4b8f136e46420227eda60a03d (diff) | |
download | haskell-b15136afb84a5193aa385ae7c635026aed54cf3b.tar.gz |
user-guide: fix links and file names (fixes #13198)
There are some incorrect links and file names in GHC user's guide.
* docs/users_guide/glasgow_exts.rst
- GHC/Base.lhs
- GHC/List.lhs
* docs/users_guide/ffi-chap.rst
- :base-ref:`Foreign`
- :base-ref:`Control.Concurrent`
I fixed them.
Reviewers: austin, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D3035
GHC Trac Issues: #13198
Diffstat (limited to 'docs')
-rw-r--r-- | docs/users_guide/ffi-chap.rst | 4 | ||||
-rw-r--r-- | docs/users_guide/glasgow_exts.rst | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/docs/users_guide/ffi-chap.rst b/docs/users_guide/ffi-chap.rst index 70b55d040c..d4bf34318d 100644 --- a/docs/users_guide/ffi-chap.rst +++ b/docs/users_guide/ffi-chap.rst @@ -21,7 +21,7 @@ that programs using these features are not portable. Hence, these features should be avoided where possible. The FFI libraries are documented in the accompanying library -documentation; see for example the :base-ref:`Foreign` module. +documentation; see for example the :base-ref:`Foreign <Foreign.html>` module. .. _ffi-ghcexts: @@ -569,7 +569,7 @@ where it is useful to have more control over which OS thread is used, for example when calling foreign code that makes use of thread-local state. For cases like this, we provide *bound threads*, which are Haskell threads tied to a particular OS thread. For information on bound -threads, see the documentation for the :base-ref:`Control.Concurrent` module. +threads, see the documentation for the :base-ref:`Control.Concurrent <Control-Concurrent.html>` module. Foreign exports and multi-threading ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst index cf809013f6..0bbf6588cc 100644 --- a/docs/users_guide/glasgow_exts.rst +++ b/docs/users_guide/glasgow_exts.rst @@ -13333,7 +13333,7 @@ Controlling what's going on in rewrite rules great detail what rules are being fired. If you add :ghc-flag:`-dppr-debug` you get a still more detailed listing. -- The definition of (say) ``build`` in ``GHC/Base.lhs`` looks like +- The definition of (say) ``build`` in ``GHC/Base.hs`` looks like this: :: build :: forall a. (forall b. (a -> b -> b) -> b -> b) -> [a] @@ -13346,10 +13346,10 @@ Controlling what's going on in rewrite rules any inlining happening in the RHS of the ``INLINE`` thing. I regret the delicacy of this. -- In ``libraries/base/GHC/Base.lhs`` look at the rules for ``map`` to +- In ``libraries/base/GHC/Base.hs`` look at the rules for ``map`` to see how to write rules that will do fusion and yet give an efficient program even if fusion doesn't happen. More rules in - ``GHC/List.lhs``. + ``GHC/List.hs``. .. _special-ids: |