[project @ 2004-12-22 12:04:14 by simonpj]
authorsimonpj <unknown>
Wed, 22 Dec 2004 12:04:24 +0000 (12:04 +0000)
committersimonpj <unknown>
Wed, 22 Dec 2004 12:04:24 +0000 (12:04 +0000)
commit1f3a9ff8e19636fcb5bf477922012bc67fd52b02
tree36c1276efc11efbfb2a36bca700828bcc22c2148
parent893d7df5edea93ef247a4fbd57c72db09830ee36
[project @ 2004-12-22 12:04:14 by simonpj]
--------------------------
Add -fwarn-orphans flag
--------------------------

This gives a decent report for modules that contain 'orphan' instance and
rule declarations.  These are to be avoided, because GHC has to proactively
read the interface file every single time, just in case the instance/rule is
needed.

The flag just gives a convenient way of identifying the culprits.
ghc/compiler/iface/MkIface.lhs
ghc/compiler/main/CmdLineOpts.lhs
ghc/compiler/main/DriverFlags.hs
ghc/docs/users_guide/flags.xml
ghc/docs/users_guide/using.xml