"-M" option broken with "-hisuf prof.hi"
The "-M" option doesn't work if you try to use it in
combination
with the "-hisuf" option where (as suggested in the
documentation) the "-hisuf" option value ends in ".hi".
For example,
ghc -M -hisuf bar.hi Main.hs
will result in a Makefile which contains dependencies
of the form
# DO NOT DELETE: Beginning of Haskell dependencies
Main.o : Main.hs
Main.o : ./Bar.bar.bar.hi
# DO NOT DELETE: End of Haskell dependencies
Notice that the suffix used in the Makefile is
".bar.bar.hi".
It should be ".bar.hi".
Here's the example sources that I used to reproduce the
problem.
$ cat Main.hs
import Bar
main = Bar.main
$ cat Bar.hs
main = return ()
Trac metadata
Trac field |
Value |
Version |
None |
Type |
Bug |
TypeOfFailure |
OtherFailure |
Priority |
normal |
Resolution |
ResolvedFixed |
Component |
Driver |
Test case |
|
Differential revisions |
|
BlockedBy |
|
Related |
|
Blocking |
|
CC |
|
Operating system |
|
Architecture |
|