[GHC] #11345: Template Haskell's handling of infix GADT constructors is broken

GHC ghc-devs at haskell.org
Wed Jan 6 07:57:47 UTC 2016


#11345: Template Haskell's handling of infix GADT constructors is broken
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  RyanGlScott
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by jstolarek):

 I think it would be better to add a field to `GadtC` that tells whether a
 constructor is an infix one or not. Correct me if I'm wrong, but
 information about infixity of a declaration is rarely needed. Adding a new
 constructor will force TH clients to implement handling of infix
 constructors even in situations where they don't care about infixity,
 whereas adding a new field to `GadtC` will be simple to handle -
 programmers can simply ignore that field in situations where it is
 irrelevant.

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


More information about the ghc-tickets mailing list