
27 Jun
2008
27 Jun
'08
8:32 a.m.
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. Regards, Malcolm