Commit 89a201e8 authored by Takenobu Tani's avatar Takenobu Tani Committed by Marge Bot

users-guide: Update Wiki URLs to point to GitLab

The user's guide uses the `ghc-wiki` macro, and substitution rules
are complicated. So I manually edited `.rst` files without sed.

I changed `Commentary/Latedmd` only to a different page.
It is more appropriate as an example.

[ci skip]
parent 398f2cbc
......@@ -35,7 +35,7 @@ Package system
~~~~~~~~~~~~~~
- The long awaited Backpack module system is now fully usable. See
:ghc-wiki:`the GHC Wiki <Backpack>` for details.
:ghc-wiki:`the GHC Wiki <backpack>` for details.
Language
~~~~~~~~
......
......@@ -188,9 +188,9 @@ Wiki articles and tickets,
.. code-block:: rest
See :ghc-wiki:`Commentary/Latedmd` for details on demand analysis.
See :ghc-wiki:`commentary/compiler/demand` for details on demand analysis.
See the :ghc-wiki:`coding style <Commentary/CodingStyle>` for guidelines.
See the :ghc-wiki:`coding style <commentary/coding-style>` for guidelines.
See the :ghc-ticket:`123` for further discussion.
......@@ -204,11 +204,11 @@ External links can be written in either of these ways,
.. code-block:: rest
See the `GHC Wiki <http://ghc.haskell.org/wiki>`_ for details.
See the `GHC Wiki <https://gitlab.haskell.org/ghc/ghc/wikis>`_ for details.
See the `GHC Wiki`_ for details.
.. _GHC Wiki: http://ghc.haskell.org/wiki
.. _GHC Wiki: https://gitlab.haskell.org/ghc/ghc/wikis
To core library Haddock documentation
......
......@@ -69,7 +69,7 @@ A number of restrictions apply to use of annotations:
albeit redundant).
If you feel strongly that any of these restrictions are too onerous,
:ghc-wiki:`please give the GHC team a shout <MailingListsAndIRC>`.
:ghc-wiki:`please give the GHC team a shout <mailing-lists-and-irc>`.
However, apart from these restrictions, many things are allowed,
including expressions which are not fully evaluated! Annotation
......@@ -183,7 +183,7 @@ Plugins cannot optimize/inspect C-\\-, nor can they implement things like
parser/front-end modifications like GCC, apart from limited changes to
the constraint solver. If you feel strongly that any of these
restrictions are too onerous,
:ghc-wiki:`please give the GHC team a shout <MailingListsAndIRC>`.
:ghc-wiki:`please give the GHC team a shout <mailing-lists-and-irc>`.
Plugins do not work with ``-fexternal-interpreter``. If you need to run plugins
with ``-fexternal-interpreter`` let GHC developers know in :ghc-ticket:`14335`.
......
......@@ -120,7 +120,7 @@ or the type ``Any``.
This feature is not intended for use outside of the core libraries that
come with GHC. For more details see the
:ghc-wiki:`GHC developer wiki <Commentary/PrimOps>`.
:ghc-wiki:`GHC developer wiki <commentary/prim-ops>`.
.. _ffi-interruptible:
......
......@@ -5,8 +5,8 @@
# This file is part of the GHC build system.
#
# To understand how the build system works and how to modify it, see
# http://ghc.haskell.org/trac/ghc/wiki/Building/Architecture
# http://ghc.haskell.org/trac/ghc/wiki/Building/Modifying
# https://gitlab.haskell.org/ghc/ghc/wikis/building/architecture
# https://gitlab.haskell.org/ghc/ghc/wikis/building/modifying
#
# -----------------------------------------------------------------------------
......
extlinks = {
'ghc-ticket': ('https://gitlab.haskell.org/ghc/ghc/issues/%s', '#'),
'ghc-wiki': ('https://ghc.haskell.org/trac/ghc/wiki/%s', '#'),
'ghc-wiki': ('https://gitlab.haskell.org/ghc/ghc/wikis/%s', '#'),
}
libs_base_uri = '../libraries'
......
......@@ -679,7 +679,7 @@ View patterns
View patterns are enabled by the language extension :extension:`ViewPatterns`. More
information and examples of view patterns can be found on the
:ghc-wiki:`Wiki page <ViewPatterns>`.
:ghc-wiki:`Wiki page <view-patterns>`.
View patterns are somewhat like pattern guards that can be nested inside
of other patterns. They are a convenient way of pattern-matching against
......@@ -4459,7 +4459,7 @@ types containing a function type on the right-hand side.
For a full specification of the algorithms used in :extension:`DeriveFunctor`,
:extension:`DeriveFoldable`, and :extension:`DeriveTraversable`, see
:ghc-wiki:`this wiki page <Commentary/Compiler/DeriveFunctor>`.
:ghc-wiki:`this wiki page <commentary/compiler/derive-functor>`.
.. _deriving-data:
......@@ -5333,7 +5333,7 @@ Pattern synonyms
Pattern synonyms are enabled by the language extension :extension:`PatternSynonyms`, which is
required for defining them, but *not* for using them. More information and
examples of pattern synonyms can be found on the :ghc-wiki:`Wiki page <PatternSynonyms>`.
examples of pattern synonyms can be found on the :ghc-wiki:`Wiki page <pattern-synonyms>`.
Pattern synonyms enable giving names to parametrized pattern schemes.
They can also be thought of as abstract constructors that don't have a
......@@ -5535,7 +5535,7 @@ following subsections.
There are also lots more details in the `paper
<https://www.microsoft.com/en-us/research/wp-content/uploads/2016/08/pattern-synonyms-Haskell16.pdf>`_.
See the :ghc-wiki:`Wiki page <PatternSynonyms>` for more
See the :ghc-wiki:`Wiki page <pattern-synonyms>` for more
details.
Syntax and scoping of pattern synonyms
......@@ -5644,7 +5644,7 @@ incompatible with ``T``.
A module which imports ``MyNum(..)`` from ``Example`` and then re-exports
``MyNum(..)`` will also export any pattern synonyms bundled with ``MyNum`` in
``Example``. A more complete specification can be found on the
:ghc-wiki:`wiki. <PatternSynonyms/AssociatingSynonyms>`
:ghc-wiki:`wiki. <pattern-synonyms/associating-synonyms>`
.. _patsyn-typing:
......@@ -11498,7 +11498,7 @@ Notice here that the ``Maybe`` type is parameterised by the
should be considered highly experimental, and certainly un-supported*.
You are welcome to try it, but please don't rely on it working
consistently, or working the same in subsequent releases. See
:ghc-wiki:`this wiki page <ImpredicativePolymorphism>` for more details.
:ghc-wiki:`this wiki page <impredicative-polymorphism>` for more details.
If you want impredicative polymorphism, the main workaround is to use a
newtype wrapper. The ``id runST`` example can be written using this
......@@ -12504,7 +12504,7 @@ that we're interested in is ``main`` it can be useful to be able to
ignore the problems in ``a``.
For more motivation and details please refer to the
:ghc-wiki:`Wiki <DeferErrorsToRuntime>` page or the `original
:ghc-wiki:`Wiki <defer-errors-to-runtime>` page or the `original
paper <http://dreixel.net/research/pdf/epdtecp.pdf>`__.
Enabling deferring of type errors
......
......@@ -49,7 +49,7 @@ Go to the `GHC home page <http://www.haskell.org/ghc/>`__ and follow the
"download" link to download GHC for your platform.
Alternatively, if you want to build GHC yourself, head on over to the
:ghc-wiki:`GHC Building Guide <Building>` to find out how to get the sources,
:ghc-wiki:`GHC Building Guide <building>` to find out how to get the sources,
and build it on your system. Note that GHC itself is written in Haskell, so you
will still need to install GHC in order to build it.
......@@ -66,7 +66,7 @@ On the World-Wide Web, there are several URLs of likely interest:
- `GHC home page <http://www.haskell.org/ghc/>`__
- `GHC Developers Home <http://ghc.haskell.org/trac/ghc/>`__ (developer
- `GHC Developers Home <https://gitlab.haskell.org/ghc/ghc>`__ (developer
documentation, wiki, and bug tracker)
We run the following mailing lists about GHC. We encourage you to join,
......@@ -104,7 +104,7 @@ Reporting bugs in GHC
single: reporting bugs
Glasgow Haskell is a changing system so there are sure to be bugs in it.
If you find one, please see :ghc-wiki:`this wiki page <ReportABug>` for
If you find one, please see :ghc-wiki:`this wiki page <report-a-bug>` for
information on how to report it.
.. _version-numbering:
......@@ -138,7 +138,7 @@ numbering GHC versions:
`available for
download <http://www.haskell.org/ghc/dist/stable/dist/>`__, and the
latest sources are available from
:ghc-wiki:`the git repositories <Repositories>`.
:ghc-wiki:`the git repositories <repositories>`.
Stable snapshot releases are named ``x.y.z.YYYYMMDD``. where
``YYYYMMDD`` is the date of the sources from which the snapshot was
......@@ -149,7 +149,7 @@ numbering GHC versions:
We may make snapshot releases of the HEAD `available for
download <http://www.haskell.org/ghc/dist/current/dist/>`__, and the
latest sources are available from
:ghc-wiki:`the git repositories <Repositories>`.
:ghc-wiki:`the git repositories <repositories>`.
Unstable snapshot releases are named ``x.y.YYYYMMDD``. where
``YYYYMMDD`` is the date of the sources from which the snapshot was
......
......@@ -1622,7 +1622,7 @@ Using “ticky-ticky” profiling (for implementors)
Because ticky-ticky profiling requires a certain familiarity with GHC
internals, we have moved the documentation to the GHC developers wiki.
Take a look at its
:ghc-wiki:`overview of the profiling options <Commentary/Profiling>`,
:ghc-wiki:`overview of the profiling options <commentary/profiling>`,
which includeds a link to the ticky-ticky profiling page.
.. [1]
......
......@@ -810,7 +810,7 @@ taken:
There is a more detailed discussion of the issues involved in
compilation safety and some potential solutions on the
:ghc-wiki:`GHC Wiki <SafeHaskell/SafeCompilation>`.
:ghc-wiki:`GHC Wiki <safe-haskell/safe-compilation>`.
Additionally, the use of :ref:`annotations <annotation-pragmas>` is forbidden,
as that would allow bypassing Safe Haskell restrictions. See :ghc-ticket:`10826`
......
......@@ -657,9 +657,7 @@ this time with the fingerprints on the things it needed last time
are all the same it stops compiling early in the process saying
“Compilation IS NOT required”. What a beautiful sight!
You can read about `how all this
works <http://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/RecompilationAvoidance>`__
in the GHC commentary.
You can read about :ghc-wiki:`how all this works <commentary/compiler/recompilation-avoidance>` in the GHC commentary.
.. _mutual-recursion:
......
......@@ -205,7 +205,7 @@ Newtypes are better than datatypes:
Look for your function in the interface file, then for the third
field in the pragma; it should say ``Strictness: ⟨string⟩``. The
⟨string⟩ gives the strictness of the function's arguments: see
:ghc-wiki:`the GHC Commentary <Commentary/Compiler/Demand>`
:ghc-wiki:`the GHC Commentary <commentary/compiler/demand>`
for a description of the strictness notation.
For an "unpackable" ``U(...)`` argument, the info inside tells the
......
......@@ -509,7 +509,7 @@ by saying ``-fno-wombat``.
that were not visible earlier; and optimisations like
:ghc-flag:`-fspec-constr` can create functions with unused arguments which
are eliminated by late demand analysis. Improvements are modest, but
so is the cost. See notes on the :ghc-wiki:`wiki page <LateDmd>`.
so is the cost. See notes on the :ghc-wiki:`wiki page <late-dmd>`.
.. ghc-flag:: -fliberate-case
:shortdesc: Turn on the liberate-case transformation. Implied by :ghc-flag:`-O2`.
......
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