Completeness of pattern matching

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Fri, 6 Dec 2002 12:29:45 +0000


Ingo Wechsung <iw@contexo.de> writes:
> I wonder if the compiler could check, if all possible combinations have
> been checked in a pattern match.

In ghc, use the compile-time option -fwarn-incomplete-patterns

Regards,
    Malcolm