Skip to content

Introduce and use DerivClauseTys (#18662)

Ryan Scott requested to merge wip/T18662 into master

This switches deriv_clause_tys so that instead of using a list of LHsSigTypes to represent the types in a deriving clause, it now uses a sum type. DctSingle represents a deriving clause with no enclosing parentheses, while DctMulti represents a clause with enclosing parentheses. This makes pretty-printing easier and avoids confusion between HsParTy and the enclosing parentheses in deriving clauses, which are different semantically.

Fixes #18662 (closed).

Merge request reports