diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-07-24 19:00:24 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-07-24 19:01:22 -0400 |
commit | 3e5d0f188d6c8633e55e9ba6c8941c07e459fa4b (patch) | |
tree | dfe3367d65f7549bc4ee05b5c6a9076d8b901ac4 /docs/users_guide/using-concurrent.rst | |
parent | 58b62d6b2bffcd31c0f3425330ff738f6ba37271 (diff) | |
download | haskell-3e5d0f188d6c8633e55e9ba6c8941c07e459fa4b.tar.gz |
users-guide: Make it easier to reference haddocks
Previously you had to painstakingly construct the URI to the haddock
documentation. Now the Python bits have enough smarts to construct this
themselves.
Reviewers: austin, patrickdoc
Reviewed By: patrickdoc
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D3785
Diffstat (limited to 'docs/users_guide/using-concurrent.rst')
-rw-r--r-- | docs/users_guide/using-concurrent.rst | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/docs/users_guide/using-concurrent.rst b/docs/users_guide/using-concurrent.rst index 270d0c1855..32e24256c3 100644 --- a/docs/users_guide/using-concurrent.rst +++ b/docs/users_guide/using-concurrent.rst @@ -9,9 +9,8 @@ Using Concurrent Haskell GHC supports Concurrent Haskell by default, without requiring a special option or libraries compiled in a certain way. To get access to the support libraries for Concurrent Haskell, just import -:base-ref:`Control.Concurrent <Control-Concurrent.html>`. -More information on Concurrent Haskell is provided in the documentation -for that module. +:base-ref:`Control.Concurrent.`. More information on Concurrent Haskell is +provided in the documentation for that module. Optionally, the program may be linked with the :ghc-flag:`-threaded` option (see :ref:`options-linker`. This provides two benefits: @@ -104,8 +103,7 @@ RTS options for SMP parallelism ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ There are two ways to run a program on multiple processors: call -:base-ref:`Control.Concurrent.setNumCapabilities -<Control.Concurrent.html#v:setNumCapabilities>` from your program, or +:base-ref:`Control.Concurrent.setNumCapabilities` from your program, or use the RTS :rts-flag:`-N ⟨x⟩` options. .. rts-flag:: -N ⟨x⟩ @@ -174,7 +172,7 @@ CPUs: This option is probably only of use for concurrent programs that explicitly schedule threads onto CPUs with - :base-ref:`Control.Concurrent.forkOn <Control-Concurrent.html#v:forkOn>`. + :base-ref:`Control.Concurrent.forkOn`. Hints for using SMP parallelism ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |