Erroneous warning
Ian Lynagh
igloo at earth.li
Mon Sep 17 13:01:37 EDT 2001
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.
Ian
More information about the Glasgow-haskell-bugs
mailing list