[GHC] #14838: missing "incomplete-patterns" warning for TH-generated functions

GHC ghc-devs at haskell.org
Thu Feb 22 08:38:23 UTC 2018


#14838: missing "incomplete-patterns" warning for TH-generated functions
-------------------------------------+-------------------------------------
        Reporter:  gelisam           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  8.2.2
      Resolution:                    |             Keywords:
                                     |  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 simonpj):

 Nothing in the commit message explains why we suppress pattern match
 checks for generated code.  Perhaps we shouldn't?

 I favour (1) until we see why it's a bad idea.

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


More information about the ghc-tickets mailing list