
23 Sep
2005
23 Sep
'05
5:42 a.m.
"Simon Marlow"
With GHC, we can generate the dependencies using 'ghc -M' and then parse the generated Makefile. ... How would we do this with nhc98 or Hugs?
hmake -M Foo | tail +2 | cut -d' ' -f2 works independently of any compiler. If there are compiler-specific imports selected by cpp directives, then hmake -hc=ghc-6.2.2 -M ... Regards, Malcolm