#2395: "Pattern match(es) are overlapped" warning with a single view pattern
(ghc
6.9.20080606)
------------------------------+---------------------------------------------
Reporter: rwbarton | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.10 branch
Component: Compiler | Version: 6.9
Severity: minor | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown/Multiple
Os: Unknown/Multiple |
------------------------------+---------------------------------------------
Changes (by NeilMitchell):
* cc: [EMAIL PROTECTED] (added)
* os: Linux => Unknown/Multiple
* architecture: x86 => Unknown/Multiple
Comment:
If you use View Patterns, this is absolutely infuriating! In one project I
use view patterns in 8 places, so the compilation output becomes so
verbose I miss genuine errors. It's fine for view patterns to not
participate in overlap/exhaustive checking, but it should do so by _not_
issuing loads of bogus warnings which cannot be worked around :-)
This bug seriously impacts on the usability of view patterns, which is a
real shame because I'm finding them to be a very useful practical feature.
I'd argue for this bug being "major" rather than "minor".
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2395#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs