• Simon Peyton Jones's avatar
    Make unique auxiliary function names in deriving · 895eefa8
    Simon Peyton Jones authored
    In deriving for Data, we make some auxiliary functions, but they
    didn't always get distinct names (Trac #12245).  This patch fixes
    it by using the same mechanism as for dictionary functions, namely
    chooseUniqueOccTc.
    
    Some assocated refactoring came along for the ride.
    895eefa8
TcGenDeriv.hs 117 KB