[GHC] #13363: Wildcarn patterns and COMPLETE sets can lead to misleading redundant pattern-match warnings
GHC
ghc-devs at haskell.org
Fri Mar 3 14:25:29 UTC 2017
#13363: Wildcarn patterns and COMPLETE sets can lead to misleading redundant
pattern-match warnings
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.1
Resolution: | Keywords:
| PatternSynonyms,
| PatternMatchWarnings
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect | Unknown/Multiple
error/warning at compile-time | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by mpickering):
But that is not the problem.
This warning comes from the built-in constructor set. I think there needs
to be some more clever augmentation to the intermediate result in the
case that a result of `allCompleteMatches` does not contain the
constructor which was used to do the lookup. For example, if
`ToGoodToBeTrue` is not in `T, F`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13363#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list