GHC will report unused bindings (-fwarn-unused-binds) but only within a module. If it's exported, GHC doesn't help you. I'm sure GHC itself has plenty of dead code that only a global analysis can spot! GHC's interface file for a module reports all the imported things that the module depends on. So the raw material for a global analyser is in place. Simon | -----Original Message----- | From: Pertti Kellomäki [mailto:pk@cs.tut.fi] | Sent: 18 July 2001 11:43 | To: haskell@haskell.org | Subject: Dead code detection | | | I am working with a fairly rapidly changing code base, | with another person besides me making changes. Can any of | the Haskell compilers warn about unused function definitions, | or does a similar standalone tool exist? I am fairly sure the | code base includes redundant definitions that just clutter up | the source, and I would like to be able to detect them easily. | | Thanks, | -- | pertti | | _______________________________________________ | Haskell mailing list | Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell |