#3283: Selective disabling of unused bind warnings
-----------------------------+----------------------------------------------
Reporter: ajd | Owner:
Type: feature request | Status: new
Priority: normal | Component: Compiler
Version: 6.10.2 | Severity: normal
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
I like to compile with -fwarn-unused-binds to keep my code clean, but I
think a couple of extra flags to control this would be useful:
* -fno-warn-unused-fields which would turn off warnings for record field
names that were not used. I know you can prefix them with _, but then when
you do use them then you have to change the name, etc.
* A {-# USED f, g, h, ... #-} pragma to tell the compiler not to warn
about the functions given in the pragma.
I can see how especially the second could be controversial as it
introduces an incompatibility, but I think both of these features could be
put to good use. Not very high priority, though.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3283>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs