[GHC] #4905: New flag to disable warning on incomplete pattern matches in lambdas
GHC
cvs-ghc at haskell.org
Fri Jan 28 12:55:55 CET 2011
#4905: New flag to disable warning on incomplete pattern matches in lambdas
------------------------------+---------------------------------------------
Reporter: batterseapower | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.0.1
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: None/Unknown |
------------------------------+---------------------------------------------
Changes (by simonpj):
* status: new => closed
* resolution: => fixed
Comment:
Implemented by
{{{
Thu Jan 27 13:13:04 GMT 2011 simonpj at microsoft.com
* Refine incomplete-pattern checks (Trac #4905)
The changes are:
* New flag -fwarn-incomplete-uni-patterns, which checks for
incomplete patterns in (a) lambdas, (b) pattern bindings
* New flag is not implied by -W or -Wall (too noisy; and many
libraries use incomplete pattern bindings)
* Actually do the incomplete-pattern check for pattern bindings
(previously simply omitted)
* Documentation for new flag
M ./compiler/deSugar/DsGRHSs.lhs -3 +3
M ./compiler/deSugar/Match.lhs -32 +38
M ./compiler/hsSyn/HsExpr.lhs -3 +6
M ./compiler/main/DynFlags.hs -6 +10
M ./docs/users_guide/flags.xml +7
M ./docs/users_guide/using.xml -10 +25
* Fix formatting glitch in documentation
M ./docs/users_guide/using.xml -1 +2
}}}
So now `-fwarn-incomplete-patterns` doesn't warn about lambdas, but
`-fwarn-incomplete-uni-patterns` warns about both lambdas and pattern
bindings.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4905#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list