Completeness of pattern matching

Ketil Z. Malde ketil@ii.uib.no
06 Dec 2002 14:02:47 +0100


ketil@ii.uib.no (Ketil Z. Malde) writes:

> Malcolm Wallace <Malcolm.Wallace@cs.york.ac.uk> writes:
> 
> > 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
> 
> Is there a warning to warn if a block is delimited (or not) with a mix
> of tabs and spaces?  Or somehow otherwise warn against dangerously
> looking layout?

Talking about warnings, it is probably patently stupid to put

        {-# OPTIONS -fglasgow-exts -package lang #-}

at the top of my Main.lhs.  But why does GHC (5.04-1) fail to find any
of my imports as a consequence?  Bug?

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants