[Haskell-cafe] Find unused exports

Thomas Schilling nominolo at googlemail.com
Sun Nov 16 08:35:35 EST 2008


The relevant flag is: -ddump-minimal-imports

See http://www.haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html#id2630684

2008/11/15 Jason Dagit <dagit at codersbase.com>:
> 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 which names are imported (and that last 1%
> could easily be fixed to say as well).
>
> If the tool doesn't already exist is there an easy way to approximate it?
>
> Thanks,
> Jason
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
Push the envelope.  Watch it bend.


More information about the Haskell-Cafe mailing list