summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorArtem Pelenitsyn <a.pelenitsyn@gmail.com>2021-09-09 18:37:41 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-09-17 09:38:19 -0400
commitbce230c20eb04c0b557f4a7e4650b009281e717b (patch)
tree94d11f9a61fde53a82d93d22beac2fbb8d6ef7d7 /docs
parent9300c736d58fdb8b3e2961f57aa9c4f117fb9c6f (diff)
downloadhaskell-bce230c20eb04c0b557f4a7e4650b009281e717b.tar.gz
driver: -M allow omitting the -dep-suffix (means empty) (fix #15483)
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/separate_compilation.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/users_guide/separate_compilation.rst b/docs/users_guide/separate_compilation.rst
index 2e4a0df1e2..64e6590942 100644
--- a/docs/users_guide/separate_compilation.rst
+++ b/docs/users_guide/separate_compilation.rst
@@ -1297,7 +1297,7 @@ following to your ``Makefile``:
.. code-block:: make
depend :
- ghc -dep-suffix '' -M $(HC_OPTS) $(SRCS)
+ ghc -M $(HC_OPTS) $(SRCS)
Now, before you start compiling, and any time you change the ``imports``
in your program, do ``make depend`` before you do ``make cool_pgm``. The command
@@ -1401,8 +1401,7 @@ generation are:
Multiple ``-dep-suffix`` flags are permitted. For example,
``-dep-suffix a_ -dep-suffix b_`` will make dependencies for ``.hs``
on ``.hi``, ``.a_hs`` on ``.a_hi``, and ``.b_hs`` on ``.b_hi``.
- Note that you must provide at least one suffix; if you do not want a suffix
- then pass ``-dep-suffix ''``.
+ If you do not use this flag then the empty suffix is used.
.. ghc-flag:: --exclude-module=⟨file⟩
:shortdesc: Regard ``⟨file⟩`` as "stable"; i.e., exclude it from having