[commit: ghc] ghc-8.0: Make the example for -M work (9749b8c)

git at git.haskell.org git at git.haskell.org
Mon Apr 4 14:51:16 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/9749b8c440181bdd6470c11a409c0e5b32152577/ghc

>---------------------------------------------------------------

commit 9749b8c440181bdd6470c11a409c0e5b32152577
Author: Bartosz Nitka <niteria at gmail.com>
Date:   Fri Apr 1 13:03:17 2016 -0700

    Make the example for -M work
    
    `ghc` fails without `-dep-suffix ''`.
    
    Test Plan: visual inspection
    
    Reviewers: austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie, simonmar
    
    Differential Revision: https://phabricator.haskell.org/D2075
    
    (cherry picked from commit 38068913c13fa64bd776fab6cf0e971c1a18b54d)


>---------------------------------------------------------------

9749b8c440181bdd6470c11a409c0e5b32152577
 docs/users_guide/separate_compilation.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/users_guide/separate_compilation.rst b/docs/users_guide/separate_compilation.rst
index a2ce5eb..dd16f1f 100644
--- a/docs/users_guide/separate_compilation.rst
+++ b/docs/users_guide/separate_compilation.rst
@@ -829,7 +829,7 @@ following to your ``Makefile``:
 .. code-block:: make
 
     depend :
-            ghc -M $(HC_OPTS) $(SRCS)
+            ghc -dep-suffix '' -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



More information about the ghc-commits mailing list