[Haskell-cafe] Re: Call Graph Tool?

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Fri Jun 27 08:32:49 EDT 2008

> > try using 'ghc --make -v2' and translate that dependency graph to dot.
> "ghc -M $main.hs" works quite well

   hmake -M Main.hs

gives much the same output as ghc -M, but without side-effecting your
Makefile.  Even better,

   hmake -g Main.hs

gives the pure module graph dependencies without the .hs/.o clutter.

Caveat: You may need some extra commandline flags like -package base,
since hmake does not add those automatically.


More information about the Haskell-Cafe mailing list