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

GHC ghc-devs at haskell.org
Thu Feb 22 17:47:40 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 RyanGlScott):

 I agree with Simon's reasoning. Moreover, it indeed appears that this was
 intended to be the case already, judging from
 [http://git.haskell.org/ghc.git/blob/34834234fff4a9dd0408d3b29e001cd132665327:/compiler/hsSyn/Convert.hs#l416
 this comment]:

 {{{#!hs
           --We use FromSource as the origin of the bind
           -- because the TH declaration is user-written
 }}}

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


More information about the ghc-tickets mailing list