[GHC] #11028: Refactor ConDecl

GHC ghc-devs at haskell.org
Thu Nov 26 13:14:28 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 simonpj):

 BTW, a refactoring I'd love to see done is this: '''combine
 `RnEnv.HsDocContext` (used in the renamer) and `TcType.UserTypeCtxt` (used
 in the type checker)'''.

 Both are fairly big types; but they are practically the same already,
 except that the former uses `RdrName`s while the latter uses `Name`s.  But
 that's accidental; in fact the renamer could perfectly well construct
 contexts with `Name`s in them.

 I think that everything else is just accidental differences.

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


More information about the ghc-tickets mailing list