[GHC] #5340: wrong warning on incomplete case analysis in conjunction with empty data declarations
GHC
cvs-ghc at haskell.org
Fri Jul 22 18:59:45 CEST 2011
#5340: wrong warning on incomplete case analysis in conjunction with empty data
declarations
---------------------------------+------------------------------------------
Reporter: Lemming | Owner:
Type: bug | Status: new
Priority: lowest | Milestone: _|_
Component: Compiler | Version: 6.12.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Changes (by simonpj):
* priority: normal => lowest
* milestone: => _|_
Comment:
Well this is very delicate. Yes, since
* The data type is empty
* The `LeftStrict` constructor is strict
I agree that a pattern `(LeftStrict a)` can never match
But does this come up often enough to be worth special-casing in the
compiler.
I'll mark it priority lowest, but if it becomes importand for someone, do
yell.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5340#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list