[GHC] #11028: Refactor ConDecl

GHC ghc-devs at haskell.org
Tue Nov 24 09:52:08 UTC 2015


#11028: Refactor ConDecl
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                Owner:  alanz
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by jstolarek):

 Replying to [comment:11 alanz]:
 > I wonder if we should use `ConDeclSimple` instead of `ConDeclH98`.
 >
 > Alternatively `mkSimpleConDecl` should become `mkCondeclH98`.
 I vote for the latter - `mkConDeclH98` is more informative than
 `mkSimpleConDecl`.

 >Also, at the moment the `con_doc` field is never set for a GADT. It
 should either be removed or the parser modified to allow docs.
 Again, my vote for the latter. If we store docs for H98 constructors then
 we should also store them for GADTs.

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


More information about the ghc-tickets mailing list