[Git][ghc/ghc][wip/users-guide] users guide: A few small mark-up fixes

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Fri May 19 14:05:55 UTC 2023



Ben Gamari pushed to branch wip/users-guide at Glasgow Haskell Compiler / GHC


Commits:
61390665 by Ben Gamari at 2023-05-19T10:05:52-04:00
users guide: A few small mark-up fixes

- - - - -


1 changed file:

- docs/users_guide/phases.rst


Changes:

=====================================
docs/users_guide/phases.rst
=====================================
@@ -25,11 +25,11 @@ given compilation phase:
     Use ⟨cmd⟩ as the literate pre-processor.
 
 .. ghc-flag:: -pgmP ⟨cmd⟩
-    :shortdesc: Use ⟨cmd⟩ as the C pre-processor (with ``-cpp`` only)
+    :shortdesc: Use ⟨cmd⟩ as the C pre-processor (with :ghc-flag:`-cpp` only)
     :type: dynamic
     :category: phase-programs
 
-    Use ⟨cmd⟩ as the C pre-processor (with ``-cpp`` only).
+    Use ⟨cmd⟩ as the C pre-processor (with :ghc-flag:`-cpp` only).
 
 .. ghc-flag:: -pgmc ⟨cmd⟩
     :shortdesc: Use ⟨cmd⟩ as the C compiler
@@ -159,11 +159,11 @@ the following flags:
     Pass ⟨option⟩ to the literate pre-processor
 
 .. ghc-flag:: -optP ⟨option⟩
-    :shortdesc: pass ⟨option⟩ to cpp (with ``-cpp`` only)
+    :shortdesc: pass ⟨option⟩ to cpp (with :ghc-flag:`-cpp` only)
     :type: dynamic
     :category: phase-options
 
-    Pass ⟨option⟩ to CPP (makes sense only if ``-cpp`` is also on).
+    Pass ⟨option⟩ to CPP (makes sense only if :ghc-flag:`-cpp` is also on).
 
 .. ghc-flag:: -optF ⟨option⟩
     :shortdesc: pass ⟨option⟩ to the custom pre-processor
@@ -308,9 +308,9 @@ Options affecting the C pre-processor
     :category: cpp
 
     The C pre-processor :command:`cpp` is run over your Haskell code if
-    the ``-cpp`` option or ``-XCPP`` extension are given. Unless you are building a
-    large system with significant doses of conditional compilation, you
-    really shouldn't need it.
+    the :ghc-flag:`-cpp` option or :extension:`CPP` extension are given. Unless
+    you are building a large system with significant doses of conditional
+    compilation, you really shouldn't need it.
 
 .. ghc-flag:: -D⟨symbol⟩[=⟨value⟩]
     :shortdesc: Define a symbol in the C pre-processor



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6139066574ec43f07843ead6aef389decaefd955

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6139066574ec43f07843ead6aef389decaefd955
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230519/4eea4d6d/attachment-0001.html>


More information about the ghc-commits mailing list