"Pattern match(es) are overlapped" warning with a single view pattern (ghc 6.9.20080606)
Compiling the program
{-# LANGUAGE ViewPatterns #-}
main = print $ case 6 of
(even -> True) -> 4
yields the warning message
view.hs:3:15:
Warning: Pattern match(es) are overlapped
In a case alternative: ((even -> True)) -> ...
I haven't used view patterns before... but surely a single pattern can't overlap anything, can it?
Trac metadata
Trac field | Value |
---|---|
Version | 6.9 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Linux |
Architecture | x86 |