[GHC] #7085: Report unused pattern bindings
GHC
cvs-ghc at haskell.org
Fri Jul 20 13:55:11 CEST 2012
#7085: Report unused pattern bindings
---------------------------------+------------------------------------------
Reporter: simonpj | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.4.2
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by simonpj):
I agree. I've added extra behaviour to `-fwarn-unused-binds` so that it
reports
* Unused binders (as now), such as
{{{
let f x = x in 4 -- Binding for f is unused
}}}
* Unused pattern bindings (new), such as that above.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7085#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list