cabal beginner issues (other-modules, build-depends)

Malcolm Wallace Malcolm.Wallace at
Fri Sep 23 05:42:21 EDT 2005

"Simon Marlow" <simonmar at> 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 ...


More information about the Libraries mailing list