cabal beginner issues (other-modules, build-depends)
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Fri Sep 23 05:42:21 EDT 2005
"Simon Marlow" <simonmar at microsoft.com> writes:
> 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
More information about the Libraries
mailing list