Request for inline control of warning level
Simon Peyton-Jones
simonpj at microsoft.com
Mon Sep 3 11:28:21 EDT 2007
| 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)
I don't think this is right -- or if it is, it's a bug. The OPTIONS_GHC stuff is supposed to override command-line opts
| * It doesn't work on sections of the code, but rather the whole file.
True, and it'd be great to give more local pragma control -- a good feature request. Someone might want to work out details of the programmer's eye view and make a Trac feature request
Simon
More information about the Glasgow-haskell-bugs
mailing list