Changes between Version 7 and Version 8 of TypeFunctionsCore


Ignore:
Timestamp:
Aug 18, 2006 9:00:05 PM (9 years ago)
Author:
chak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TypeFunctionsCore

    v7 v8  
    2222where the `ci` are the free variables of the `tj`.  Moreover, we morally replace all occurences of `T` in the rest of the program by `T_n`.  No such replacement is required in the actual implementation as the arity index at F,,C,, type functions is just a formal device used in the formal development.  In the implementation, it is perfectly fine to retain the original name and maintain the arity information separately. 
    2323 
    24 Neverthless, we need to generate a new name for the vanilla data types representing family members (i.e., `Tinst` above).  We use a similar mechanism as for the generation of the dictionary type constructors of type classes.  In particular, we generalise the field `algTcClass` of the internal representation for datatypes, `TyCon.AlgTyCon` and rename it to `algTcParent` with type 
    25 {{{ 
    26 data AlgTyConParent = NoParentTyCon 
    27                     | ClassTyCon    Class 
    28                     | FamilyTyCon   TyCon 
    29 }}} 
    30 In contrast to the old `algTcClass` field, the new field also appears in `IfaceSyn.IfaceDecl`.  However, it does so as `Maybe IfaceTyCon` as we still do not want to represent class parent information in interfaces. 
    3124 
    3225== Inserting coercions ==