> On Mon, Sep 17, 2001 at 12:52:32PM +0100, Ian Lynagh wrote:
> >
> > Q.lhs:5: Warning: Pattern match(es) are overlapped in the
> definition of function `foo':
> > foo 0 = ...
>
> Oh, along similar lines, should the warning not be
> "Pattern match(es) are hidden in [...]"
> or similar? Overlapping patterns are OK, e.g.
>
> > foo 5 = 0
> > foo _ = 2
>
> but the problem comes when they are the other way round so
> the first one
> "hides" the second.
The warning does what you want - it won't warn about the definition of
'foo' above, but it would warn if the equations were reversed. Perhaps
the wording should be changed?
Cheers,
Simon
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs