Opened 6 months ago

Last modified 7 weeks ago

#15483 new feature request

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

Reported by: ulysses4ever Owned by:
Priority: normal Milestone: 8.10.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 (3)

comment:1 Changed 6 months ago by bgamari

Milestone: 8.6.18.8.1

These won't be fixed for in GHC 8.6.

comment:2 Changed 5 months ago by ulysses4ever

Keywords: newcomer added

comment:3 Changed 7 weeks ago by osa1

Milestone: 8.8.18.10.1

Bumping milestones of low-priority tickets.

Note: See TracTickets for help on using tickets.