Opened 4 months ago

Last modified 2 months ago

#15483 new feature request

ghc -M requires -dep-suffix for no good reason

Reported by: ulysses4ever Owned by:
Priority: normal Milestone: 8.8.1
Component: Driver Version: 8.4.3
Keywords: newcomer Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Doing

ghc -M Foo.hs

gives

You must specify at least one -dep-suffix

I went to the documentation and noticed (7.8.12) an example:

depend :
        ghc -dep-suffix '' -M $(HC_OPTS) $(SRCS)

So, empty suffix is fine. Why not default to empty string then?

I found a commit which introduced the requirement (af072fc): it says, it fixed #7381, and this doesn't seem to do anything with dep-suffix in particular. So, maybe there is no good reason to require that.

Change History (2)

comment:1 Changed 4 months ago by bgamari

Milestone: 8.6.18.8.1

These won't be fixed for in GHC 8.6.

comment:2 Changed 2 months ago by ulysses4ever

Keywords: newcomer added
Note: See TracTickets for help on using tickets.