Fix two bugs in TypeData TH reification
This patch fixes two issues in the way that type data
declarations were
reified with Template Haskell:
-
type data
data constructors are now properly reified usingDataConI
. This is accomplished with a special case inreifyTyCon
. Fixes #22818 (closed). -
type data
type constructors are now reified inreifyTyCon
usingTypeDataD
instead ofDataD
. Fixes #22819 (closed).