Re: [Haskell-cafe] Find unused exports

2008-11-16 Thread Jason Dagit
On Sun, Nov 16, 2008 at 5:35 AM, Thomas Schilling [EMAIL PROTECTED] wrote: The relevant flag is: -ddump-minimal-imports See http://www.haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html#id2630684 The documentation says this: -ddump-minimal-imports Dump to the file

Re: [Haskell-cafe] Find unused exports

2008-11-16 Thread Michael D. Adams
Within a set of modules, the minimal imports also give you the minimal exports since each minimal export is required because it is imported somewhere. Just compile all your modules with -ddump-minimal-imports, then cat all your *.import files together and sort the result. The minimal exports for

Re: [Haskell-cafe] Find unused exports

2008-11-16 Thread Jason Dagit
On Sun, Nov 16, 2008 at 5:10 PM, Michael D. Adams [EMAIL PROTECTED]wrote: Within a set of modules, the minimal imports also give you the minimal exports since each minimal export is required because it is imported somewhere. Just compile all your modules with -ddump-minimal-imports, then cat

[Haskell-cafe] Find unused exports

2008-11-15 Thread Jason Dagit
Hello, Has anyone already made a tool to check if exported functions, data constructors, types, etc are unused within a set of modules? For my usage it would probably suffice if the tool only compared import lists against export lists as we compile with -Wall and 99% of our imports say exactly