
17 Feb
2005
17 Feb
'05
11:36 a.m.
On 17 February 2005 14:54, Daan Leijen wrote:
A more general question: We doesn't -ohi dir/filename.hi is not reflected in the dependencies. I tried:
ghc -M -odir out -ohi out/A.hi A.hs
but nothing changed.
Simon??
This is because ghc -M works like --make, in that it traverses the module dependency graph. When multiple modules are being considered, the -ohi flag doesn't make much sense (which module does it apply to?). The right way is to use -hidir/-hisuf, which are honoured by -M and --make. Cheers, Simon