Erroneous pattern-match overlap warning
foo "" = True
foo (c:cs) = False
gives the warning message:
foo.hs:3: Warning: Pattern match(es) are overlapped in
the definition of function `foo':
foo (c : cs) = ...
Trac metadata
Trac field | Value |
---|---|
Version | None |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | low |
Resolution | ResolvedFixed |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |