[Haskell] Program maintenance tools

Andy Moran moran at galois.com
Tue Oct 12 11:27:36 EDT 2004


>> - detection of unnecessary arguments for functions;
>> - detection of unnecesary imports of modules;
>
> http://www.haskell.org/ghc/docs/latest/html/users_guide/options-sanity.html
>
>
> ghc -W:
>
>     Provides the standard warnings 
> plus -fwarn-incomplete-patterns, -fwarn-unused-matches, -fwarn-unused-imports, 
>  -fwarn-misc, and -fwarn-unused-binds.

These also give you lots of dead code detection (unused-binds, 
unused-matches), but may miss some dead code.

Also very useful for getting specific with your import lists 
is -ddump-minimal-imports.

Cheers,

Andy



More information about the Haskell mailing list