OPTIONS_GHC pragmas allow warnings to be enabled or disabled for a
particular file, but there are some limitations:

 * It doesn't override command-line settings (being tacked on the start,
rather than the end, of the options lists, I believe)
 * It doesn't work on sections of the code, but rather the whole file.

Warnings pragmas on many C++ compilers allow you to locally
enable/disable warnings (and push/pop warning state), so that you can
compile with full warnings and warnings-as-errors, and still do explicit
warning-generating behaviour where you really want to.

I think this would be a nice feature for GHC to have.

It could be argued that it would just be preferable to fix your code so
it generate warnings, but sometimes it just seems cleaner to actually
write what you mean, and make the warnings system ignore it, and that
option currently isn't available.

Thanks,
        Simon Frankau.

PS: I'm still mailing bugs/requests rather than using Trac, since my
attempts to login with guest/guest don't seem to stick. I'm still
guessing it's the proxy we have, but any thoughts on the matter would be
appreciated.
------------------------------------------------------------------------
For important statutory and regulatory disclosures and more information about 
Barclays Capital, please visit our web site at http://www.barcap.com.

Internet communications are not secure and therefore the Barclays Group does 
not accept legal responsibility for the contents of this message.  Although the 
Barclays Group operates anti-virus programmes, it does not accept 
responsibility for any damage whatsoever that is caused by viruses being 
passed.  Any views or opinions presented are solely those of the author and do 
not necessarily represent those of the Barclays Group.  Replies to this email 
may be monitored by the Barclays Group for operational or business reasons.

Barclays Capital is the investment banking division of Barclays Bank PLC, a 
company registered in England (number 1026167) with its registered office at 1 
Churchill Place, London, E14 5HP. This email may relate to or be sent from 
other members of the Barclays Group.
------------------------------------------------------------------------
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to