Refine incomplete-pattern checks (Trac #4905)
authorsimonpj@microsoft.com <unknown>
Thu, 27 Jan 2011 13:13:04 +0000 (13:13 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 27 Jan 2011 13:13:04 +0000 (13:13 +0000)
commita0f6d307b097bd788e181434a4d9b7fdd56a6c6b
treeebcc56d2891e6887dfad9e30f4a9c0db59bd53de
parentc1e824a275339da8fae6614f5a0db751874d0a36
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
compiler/deSugar/DsGRHSs.lhs
compiler/deSugar/Match.lhs
compiler/hsSyn/HsExpr.lhs
compiler/main/DynFlags.hs
docs/users_guide/flags.xml
docs/users_guide/using.xml