-fwarn-incomplete-record-updates
Simon Marlow
simonmar at microsoft.com
Mon Oct 18 05:20:13 EDT 2004
On 18 October 2004 03:03, Ian Lynagh wrote:
> I like to keep my programs warning free, but I don't know of a
> sensible way of silencing
>
> Warning: Pattern match(es) are non-exhaustive
> In a record-update construct: Patterns not matched: Bar
>
> (which is generally intentional) without also silencing useful
> warnings. The attached patch adds a -fwarn-incomplete-record-updates
> that takes over control of this warning from
> -fwarn-incomplete-patterns.
Go for it. You also need to add an entry to the warnings section of the
User's Guide, BTW.
Cheers,
Simon
More information about the Cvs-ghc
mailing list