Changes between Version 5 and Version 6 of Records/OverloadedRecordFields/Implementation


Ignore:
Timestamp:
Jul 16, 2013 4:32:32 PM (9 months ago)
Author:
adamgundry
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Records/OverloadedRecordFields/Implementation

    v5 v6  
    3939where the first component is the field and the second is the selector function. 
    4040 
    41 When the renamer handles record bindings (`rnHsRecFields1` in `RnPat`) it replaces the fields with selector names. (Perhaps the field should be cached as well, for pretty-printing?) 
     41Where an AST representation type (e.g. `HsRecField` or `ConDeclField`) contained an argument of type `Located id` for a field, it now stores a `Located RdrName` for the label and `Maybe id` for the selector. The parser supplies `Nothing` for the selector; it is filled in by the renamer  (by `rnHsRecFields1` in `RnPat`, and `rnField` in `RnTypes`). Partial functions are provided to extract the `Located id`, but they will panic if called on not-yet-renamed syntax. 
     42 
    4243 
    4344== Next steps ==