#3078: Erroneous warnings for -XPatternGuards
-------------------------------+--------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.1
Severity: normal | Resolution: duplicate
Keywords: | Difficulty: Unknown
Testcase: | Os: Linux
Architecture: x86_64 (amd64) |
-------------------------------+--------------------------------------------
Changes (by simonpj):
* status: new => closed
* difficulty: => Unknown
* resolution: => duplicate
Comment:
It's a very special case. For example you might have
{{{
... where n | A x <- f t = x
| B x <- t = x
}}}
or
{{{
... where n | A x <- t, x>0 = x
| B x <- t = x
}}}
etc. In principle a better exhaustiveness checker could catch some of
these cases, and that'd be great. Good suggestion, but it's definitely
not simple.
I'm going to close this ticket as a kind-of duplicate, and attach it to
the main exhaustiveness checking ticket, namely #595
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3078#comment:1>
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