[GHC] #15977: Restructure typechecking modules

GHC ghc-devs at haskell.org
Fri Nov 30 16:04:02 UTC 2018


#15977: Restructure typechecking modules
-------------------------------------+-------------------------------------
           Reporter:  goldfire       |             Owner:  (none)
               Type:  task           |            Status:  new
           Priority:  normal         |         Milestone:  8.6.3
          Component:  Compiler       |           Version:  8.6.2
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Some of the kind-checking and type-checking modules have become unruly.

 Simon and I propose the new structure:

 - KcTyClsDecls will handle kind-checking and generalization of datatype
 declarations. (That is, `kcTyClGroup` and children, including related
 functions in TcHsType)

 - TcInstBinds will handle `tcInstDecls2` and children

 - TcTyConValidity will handle `checkValidTyCon` and children

 - Fold the rest of TcInstDecls (essentially, `tcInstDecls1`) into what's
 left of TcTyClsDecls. TcInstDecls is removed.

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


More information about the ghc-tickets mailing list