[GHC] #5728: Warnings from -fwarn-incomplete-record-updates even with all constructors matched
GHC
ghc-devs at haskell.org
Thu Nov 27 14:05:00 UTC 2014
#5728: Warnings from -fwarn-incomplete-record-updates even with all constructors
matched
-------------------------------------+-------------------------------------
Reporter: mjo | Owner:
Type: bug | Status: new
Priority: normal | Milestone: ⊥
Component: Compiler | Version: 7.4.1
Resolution: | Keywords: warnings
Operating System: | Architecture: Unknown/Multiple
Unknown/Multiple | Difficulty: Unknown
Type of failure: Incorrect | Blocked By:
warning at compile-time | Related Tickets:
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Changes (by simonpj):
* cc: george.karachalias@…, tom.schrijvers@… (added)
Comment:
Actually not. The warning was being suppressed by
{{{
handleWarnings = if isGenerated origin
then discardWarningsDs
else id
}}}
in `matchWrapper`, which is really intended to suppress warnings in code
generate by `deriving` etc. I've fixed this which makes the warning come
back.
It's really is part of the pattern-match-fixup problem. Fortunately,
Geroge K and Tom S are working on this.
Simon
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/5728#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list