Skip to content
  • Adam Gundry's avatar
    Fix interaction of DuplicateRecordFields and GHC.Generics · 24420385
    Adam Gundry authored and Ben Gamari's avatar Ben Gamari committed
    This prevents GHC.Generics from exposing mangled selector names
    when used on a datatype defined with DuplicateRecordFields enabled.
    
    Test Plan:
    New test overloadedrecflds_generics, which tests that both
    GHC.Generics and Data.Data use the correct field labels, not mangled
    names.
    
    Reviewers: kosmikus, simonpj, austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1486
    24420385