#2395: "Pattern match(es) are overlapped" warning with a single view pattern
(ghc
6.9.20080606)
---------------------------------------------+------------------------------
Reporter: rwbarton | Owner: igloo
Type: bug | Status: closed
Priority: normal | Milestone: 6.12.1
Component: Compiler | Version: 6.9
Severity: minor | Resolution: fixed
Keywords: | Difficulty: Unknown
Testcase: deSugar/should_compile/T2395 | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------------------+------------------------------
Changes (by simonpj):
* testcase: => deSugar/should_compile/T2395
Comment:
I've improved the fix with
{{{
Mon Aug 10 15:11:58 BST 2009 [email protected]
* Improve the recent changes to overlap-checking for view patters
The previous patch simply gave up for view patterns; this version
instead treats them like n+k patterns and gives signficantly better
results.
Less code, too.
M ./compiler/deSugar/Check.lhs -85 +101
M ./compiler/hsSyn/HsPat.lhs -29 +1
}}}
and added a test case
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2395#comment:15>
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