[GHC] #11245: Non-exhaustive pattern, "Patterns not matched" list is empty
GHC
ghc-devs at haskell.org
Fri Dec 18 16:19:25 UTC 2015
#11245: Non-exhaustive pattern, "Patterns not matched" list is empty
-------------------------------------+-------------------------------------
Reporter: osa1 | Owner: gkaracha
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.11
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by gkaracha):
Ah, yes, this is easy to do I guess. We can always check every uncovered
vector before printing for being `[]`. If yes, we can print something
like:
{{{
Exhaustive.hs:10:7: warning:
Pattern match(es) are non-exhaustive
In the definition for ‘a’: Cases not matched:
(incomplete guards)
}}}
I am gonna patch this too :)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11245#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list