#17: Separate warnings for unused local and top-level bindings
------------------------------+---------------------------------------------
Reporter: magunter | Owner:
Type: feature request | Status: new
Priority: lowest | Milestone: _|_
Component: Compiler | Version: None
Resolution: None | Keywords: -fwarn-unused-binds
Difficulty: Unknown | Os: Unknown/Multiple
Testcase: | Architecture: Unknown/Multiple
Failure: None/Unknown |
------------------------------+---------------------------------------------
Changes (by mboes):
* cc: [email protected] (added)
Comment:
I doubt the usefulness of this feature since any top-level function that
is mentioned in the export list of the module won't trigger a warning. It
is confusing to see dead code in a module and so top-level functions that
aren't used should probably just be commented out.
However, this feature does come handy when using records: it often happens
that a field name isn't used in a module, hence triggering a warning.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/17#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs