Ticket #2395 (closed bug: fixed)
"Pattern match(es) are overlapped" warning with a single view pattern (ghc 6.9.20080606)
| Reported by: | rwbarton | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.12.1 |
| Component: | Compiler | Version: | 6.9 |
| Keywords: | Cc: | ben@…, ndmitchell@…, ganesh@…, deduktionstheorem@…, fontaine@…, alexander.dunlap@…, sveina@…, andy@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Incorrect warning at compile-time | Difficulty: | Unknown |
| Test Case: | deSugar/should_compile/T2395 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
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?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

