Warnings
Simon Peyton-Jones
simonpj at microsoft.com
Fri Aug 31 11:03:59 EDT 2007
| I prefer -Wall -fno-warn-name-shadowing; I'm sure it'll be shorter, and
| it will automatically gain any new warnings.
|
| I think it would be better to put that in the Makefile and initially add
| "{-# OPTIONS_GHC -w #-}" to every module; then work towards removing the
| pragmas so the warnings are only set in one place.
OK agreed. would you like to do that? And put guidance on the Wiki to explain?
Adding the options line to every module is a bit painful, but seems hard to avoid.
Perhaps it can also say
-- Please remove this -w option, and fix the consequent warnings,
-- if you do any significant work on this module.
-- See http://<url>
(The URL would be the Wiki notes. http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions)
If you want me to help with the tiresomeness just ask, but maybe a shell script would do the job?
Simon
More information about the Cvs-ghc
mailing list