logo       

[ ghc-Bugs-978543 ] "-M" option broken with "-hisuf prof.hi": msg#00041

lang.haskell.glasgow.bugs

Subject: [ ghc-Bugs-978543 ] "-M" option broken with "-hisuf prof.hi"

Bugs item #978543, was opened at 2004-06-24 07:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=978543&group_id=8032

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Fergus Henderson (fergus)
Assigned to: Nobody/Anonymous (nobody)
Summary: "-M" option broken with "-hisuf prof.hi"

Initial Comment:
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 ()


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=978543&group_id=8032


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise