Commit 679427f8 authored by Vladislav Zavialov's avatar Vladislav Zavialov Committed by Marge Bot

Produce all DerivInfo in tcTyAndClassDecls

Before this refactoring:

* DerivInfo for data family instances was returned from tcTyAndClassDecls
* DerivInfo for data declarations was generated with mkDerivInfos and added at a
  later stage of the pipeline in tcInstDeclsDeriv

After this refactoring:

* DerivInfo for both data family instances and data declarations is returned from
  tcTyAndClassDecls in a single list.

This uniform treatment results in a more convenient arrangement to fix #16731.
parent 675d27fc
Pipeline #7965 passed with stages
in 456 minutes and 1 second