[Haskell] Re: Getting a function dependency graph from source

Thomas Hallgren hallgren at cse.ogi.edu
Wed Oct 11 19:32:48 EDT 2006


The pfe command line tool from the Programatica Project has functionality that
seems to fit fairly well with what you are asking for:

	pfe deps   -- lists function level dependencies
	pfe needed -- lists everything needed by a definition
	pfe dead   -- lists unused definitions
	pfe slice  -- extract a slice by eliminating unused defintions

For more information, and downloads, see


Thomas H

Durward McDonell wrote:
> Hello.  This seems like a basic question, but I haven't
> been able to find an answer.  I have a pile of Haskell
> code that is compiled into a library, and a Haskell program
> that uses this library.  What I would like is something
> that will look at my program and follow the function calls
> until it gets to the Prelude.  I want to know which functions
> in the library and in the Prelude actually get used (at
> least potentially).

> Thanks.

More information about the Haskell mailing list