[GHC] #602: Warning Suppression
GHC
ghc-devs at haskell.org
Tue Oct 20 15:33:38 UTC 2015
#602: Warning Suppression
-------------------------------------+-------------------------------------
Reporter: simonmar | Owner:
Type: task | Status: new
Priority: lowest | Milestone: 8.0.1
Component: Compiler | Version: None
Resolution: None | Keywords: warnings
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Other | Test Case: N/A
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by goldfire):
And Rust's support reminds me very much of
[http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks
%2Ftask-suppress_warnings.htm Java's].
Both Rust and Java support warning suppression (or, for Rust, generation)
based on scopes. Is that reasonable for Haskell? Maybe. We would continue
to allow `OPTIONS` to specify flags for the whole file, but we could then
also support local flags for definitions (or parts of definitions). The
one thing this design wouldn't allow is setting warning suppression for a
whole bunch of definitions (but not all). That may be an acceptable
tradeoff.
While we're thinking about this, it might be reasonable to consider adding
arbitrary option-changes locally. (For example, I'd love to be able to
turn on `LANGUAGE` pragmas only for part of a file.)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/602#comment:26>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list