[GHC] #14318: TH shadowing bind statement triggers -Wunused-matches

GHC ghc-devs at haskell.org
Mon Jul 2 02:51:53 UTC 2018


#14318: TH shadowing bind statement triggers -Wunused-matches
-------------------------------------+-------------------------------------
        Reporter:  lyxia             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  8.2.1
      Resolution:                    |             Keywords:
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 mgsloan):

 Ah, here is a ticket about TH allowing you to produce non-unique uniques:
 https://ghc.haskell.org/trac/ghc/ticket/11812

 So, I suspect that the proper solution here would involve making it so
 that TH cannot produce non-unique binding of unique names.

 There is some tricky stuff here, though.  I can imagine a scenario where a
 TH user might rely on storing unique names in memory and re-using them
 between splices.  This makes the task of further unique-ification quite
 non-trivial.

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


More information about the ghc-tickets mailing list