[GHC] #11028: Refactor ConDecl

GHC ghc-devs at haskell.org
Thu Nov 26 12:25:54 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 alanz):

 Something else I am bumping my head against is that `rnField` gets passed
 an empty `fl_env` and so `lookupField` generates a panic when the lookup
 fails.

 It seems that the new `RdrHsSyn.gadtDeclDetails` needs to be called before
 this, but unless the results are stored the names may be discarded. I do
 not know enough about this atm.

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


More information about the ghc-tickets mailing list