[GHC] #13464: Pattern match checker runs even when not needed

GHC ghc-devs at haskell.org
Tue Mar 21 15:37:05 UTC 2017


#13464: Pattern match checker runs even when not needed
-------------------------------------+-------------------------------------
           Reporter:  jstolarek      |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 I have code that triggers pattern match checker warning:

 {{{
 Pattern match checker exceeded (2000000) iterations in
 a case alternative. (Use -fmax-pmcheck-iterations=n
 to set the maximun number of iterations to n)
 }}}

 I would like to silence that warning. Alas, `-Wno-incomplete-patterns`
 does nothing - the warning still appears. I would expect that if I do not
 want to check for incomplete patterns then pattern match checker is not
 run at all and thus does not exceed maximum number of iterations! I can
 only use `-w` to silence all the warnings but this is an overkill -
 definitely not what I want.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13464>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list