[GHC] #9066: Template Haskell cannot splice an infix declaration for a data constructor

GHC ghc-devs at haskell.org
Mon Nov 3 14:05:51 UTC 2014


#9066: Template Haskell cannot splice an infix declaration for a data constructor
-------------------------------------+-------------------------------------
              Reporter:  goldfire    |            Owner:  goldfire
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Template    |          Version:  7.8.2
  Haskell                            |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:              |  Related Tickets:
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 I'm a bit confused.

  * What does the TH syntax look like?  Presumably `InfixD fixity name`
 where `name :: TH.Name`.

  * What is the flavour of that `name`?  Presumably not a `NameG`?  So
 `NameS` or `NameL`?

  * If `NameS`, we never generate an `Exact` `RdrName`, so I guess `NameL`?

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


More information about the ghc-tickets mailing list