Sean

If you are into DOT, would you like to arrange a flag to ghc -M that
will print the module dependencies in DOT format?  It'd be extremely
cool to be able to generate pretty module dependency graphs with the
flick of a wrist.

You could do this on the HEAD, but after we've forked the tree for 6.4
(which is just about to happen).

Do read the new documentation on separate compilation and hs-boot files
(section 4.6.9 of the HEAD docs).   A SOURCE import dependency should be
drawn differently to an ordinary import.  And if possible the source
imports dependencies should somehow be drawn last, to tie the knot, so
that the dependency tree shape is dominated by the ordinary imports.

It's extremely easy to see what the dependencies are.   Notably, in
DriverMkDepend.doMkDependHs (again in the HEAD) there's an option to
print dependencies to the terminal; it's just a question of doing the
same in a different format.

If you felt this was worth doing that'd be great.

I gather that your commit below concerns *function* dependencies.  Maybe
that'd be worth doing too... but lower priority

Simon


| -----Original Message-----
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of
| [EMAIL PROTECTED]
| Sent: 01 February 2005 00:29
| To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
| Subject: cvs commit: fptools/ghc Makefile fptools/ghc/compiler
Makefile package.conf.in
| fptools/ghc/compiler/main CmdLineOpts.lhs DriverFlags.hs
fptools/ghc/compiler/rename CallGraph.hs
| fptools/ghc/compiler/typecheck TcRnDriver.lhs fptools/ghc/core-plugins
...
| 
| sseefried    2005/01/31 16:29:00 PST
| 
|   Modified files:        (Branch: pluggable-1-branch)
|     ghc                  Makefile
|     ghc/compiler         Makefile package.conf.in
|     ghc/compiler/main    CmdLineOpts.lhs DriverFlags.hs
|     ghc/compiler/typecheck TcRnDriver.lhs
|     ghc/core-plugins     Makefile package.conf.in
|     mk                   package.mk target.mk
|   Added files:           (Branch: pluggable-1-branch)
|     ghc/compiler/rename  CallGraph.hs
|   Removed files:         (Branch: pluggable-1-branch)
|     ghc/core-plugins     Makefile.core-plugins
|   Log:
|   Have a added a command line switch to dump dependencies of functions
in a
|   module to a file in DOT format. Have also fixed the build system so
that
|   package ghc and core-plugins package can be installed.
| 
|   Revision  Changes    Path
|   1.26.4.2  +7 -4      fptools/ghc/Makefile
|   1.274.4.3 +27 -7     fptools/ghc/compiler/Makefile
|   1.5.4.2   +2 -2      fptools/ghc/compiler/package.conf.in
|   1.193.4.2 +5 -1      fptools/ghc/compiler/main/CmdLineOpts.lhs
|   1.142.4.2 +17 -0     fptools/ghc/compiler/main/DriverFlags.hs
|   1.90.2.1  +7 -2      fptools/ghc/compiler/typecheck/TcRnDriver.lhs
|   1.1.2.3   +21 -12    fptools/ghc/core-plugins/Attic/Makefile
|   1.1.2.2   +2 -2      fptools/ghc/core-plugins/Attic/package.conf.in
|   1.42.2.1  +19 -6     fptools/mk/package.mk
|   1.190.2.1 +16 -6     fptools/mk/target.mk
| _______________________________________________
| Cvs-ghc mailing list
| [EMAIL PROTECTED]
| http://www.haskell.org/mailman/listinfo/cvs-ghc
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to