Skip to content
  • Jan Stolarek's avatar
    Split SynTyCon to SynonymTyCon and FamilyTyCon · 696fc4ba
    Jan Stolarek authored
    This patch refactors internal representation of type synonyms and type families by splitting them into two separate data constructors of TyCon data type. The main motivation is is that some fields make sense only for type synonyms and some make sense only for type families. This will be even more true with the upcoming injective type families.
    
    There is also some refactoring of names to keep the naming constistent. And thus tc_kind field has become tyConKind and tc_roles has become tcRoles. Both changes are not visible from the outside of TyCon module.
    
    Updates haddock submodule
    
    Reviewers: simonpj
    
    Differential Revision: https://phabricator.haskell.org/D508
    
    GHC Trac Issues: #9812
    696fc4ba