• Ben Gamari's avatar
    Use Cxt for deriving clauses in TH (#10819) · 04ab55d9
    Ben Gamari authored
    Deriving clauses in the TH representations of data, newtype, data
    instance, and newtype instance declarations previously were just [Name],
    which didn't allow for more complex derived classes, eg. multi-parameter
    This switches out [Name] for Cxt, representing the derived classes as
    types instead of names.
    Test Plan: validate
    Reviewers: goldfire, spinda, austin
    Reviewed By: goldfire, austin
    Subscribers: thomie
    Differential Revision: https://phabricator.haskell.org/D1202
    GHC Trac Issues: #10819
all.T 14.4 KB