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
forall
s check now lives in thernConDecl
case forConDeclGADT
. - The
LinearTypes
-specific code that used to live in thernConDecl
case forConDeclGADTPrefixPs
now lives inGHC.Parser.PostProcess.mkGadtDecl
, which is now monadic so that it can check if-XLinearTypes
is enabled.
Fixes #18517 (closed) .
Edited by Ben Gamari