Remove ConDeclGADTPrefixPs
This removes the ConDeclGADTPrefixPs per the discussion in #18517 (closed).
Most of this patch simply removes code, although the code in the
rnConDecl case for ConDeclGADTPrefixPs had to be moved around a
bit:
- The nested
foralls check now lives in thernConDeclcase forConDeclGADT. - The
LinearTypes-specific code that used to live in thernConDeclcase forConDeclGADTPrefixPsnow lives inGHC.Parser.PostProcess.mkGadtDecl, which is now monadic so that it can check if-XLinearTypesis enabled.
Fixes #18517 (closed) .
Edited by Ben Gamari