@@ -622,41 +622,41 @@ type ProvideWhat = ProvideWhat' PTerm
622622-- datatypes and typeclasses.
623623data PDecl' t
624624 = PFix FC Fixity [String] -- ^ Fixity declaration
625− | PTy (Docstring (Either Err PTerm)) [(Name, Docstring (Either Err PTerm))] SyntaxInfo FC FnOpts Name FC t -- ^ Type declaration (last FC is precise name location)
625+ | PTy (Docstring (Either Err t)) [(Name, Docstring (Either Err t))] SyntaxInfo FC FnOpts Name FC t -- ^ Type declaration (last FC is precise name location)
626626 | PPostulate Bool -- external def if true
627− (Docstring (Either Err PTerm)) SyntaxInfo FC FC FnOpts Name t -- ^ Postulate, second FC is precise name location
627+ (Docstring (Either Err t)) SyntaxInfo FC FC FnOpts Name t -- ^ Postulate, second FC is precise name location
628628 | PClauses FC FnOpts Name [PClause' t] -- ^ Pattern clause
629629 | PCAF FC Name t -- ^ Top level constant
630− | PData (Docstring (Either Err PTerm)) [(Name, Docstring (Either Err PTerm))] SyntaxInfo FC DataOpts (PData' t) -- ^ Data declaration.
630+ | PData (Docstring (Either Err t)) [(Name, Docstring (Either Err t))] SyntaxInfo FC DataOpts (PData' t) -- ^ Data declaration.
631631 | PParams FC [(Name, t)] [PDecl' t] -- ^ Params block
632632 | PNamespace String FC [PDecl' t]
633633 -- ^ New namespace, where FC is accurate location of the
634634 -- namespace in the file
635− | PRecord (Docstring (Either Err PTerm)) SyntaxInfo FC DataOpts
635+ | PRecord (Docstring (Either Err t)) SyntaxInfo FC DataOpts
636636 Name -- Record name
637637 FC -- Record name precise location
638638 [(Name, FC, Plicity, t)] -- Parameters, where FC is precise name span
639− [(Name, Docstring (Either Err PTerm))] -- Param Docs
640− [((Maybe (Name, FC)), Plicity, t, Maybe (Docstring (Either Err PTerm)))] -- Fields
639+ [(Name, Docstring (Either Err t))] -- Param Docs
640+ [((Maybe (Name, FC)), Plicity, t, Maybe (Docstring (Either Err t)))] -- Fields
641641 (Maybe (Name, FC)) -- Optional constructor name and location
642− (Docstring (Either Err PTerm)) -- Constructor doc
642+ (Docstring (Either Err t)) -- Constructor doc
643643 SyntaxInfo -- Constructor SyntaxInfo
644644 -- ^ Record declaration
645− | PClass (Docstring (Either Err PTerm)) SyntaxInfo FC
645+ | PClass (Docstring (Either Err t)) SyntaxInfo FC
646646 [(Name, t)] -- constraints
647647 Name -- class name
648648 FC -- accurate location of class name
649649 [(Name, FC, t)] -- parameters and precise locations
650− [(Name, Docstring (Either Err PTerm))] -- parameter docstrings
650+ [(Name, Docstring (Either Err t))] -- parameter docstrings
651651 [(Name, FC)] -- determining parameters and precise locations
652652 [PDecl' t] -- declarations
653653 (Maybe (Name, FC)) -- instance constructor name and location
654− (Docstring (Either Err PTerm)) -- instance constructor docs
654+ (Docstring (Either Err t)) -- instance constructor docs
655655 -- ^ Type class: arguments are documentation, syntax info, source location, constraints,
656656 -- class name, class name location, parameters, method declarations, optional constructor name
657657 | PInstance
658− (Docstring (Either Err PTerm)) -- Instance docs
659− [(Name, Docstring (Either Err PTerm))] -- Parameter docs
658+ (Docstring (Either Err t)) -- Instance docs
659+ [(Name, Docstring (Either Err t))] -- Parameter docs
660660 SyntaxInfo
661661 FC [(Name, t)] -- constraints
662662 Name -- class
@@ -672,9 +672,10 @@ data PDecl' t
672672 | PSyntax FC Syntax -- ^ Syntax definition
673673 | PMutual FC [PDecl' t] -- ^ Mutual block
674674 | PDirective Directive -- ^ Compiler directive.
675− | PProvider (Docstring (Either Err PTerm)) SyntaxInfo FC FC (ProvideWhat' t) Name -- ^ Type provider. The first t is the type, the second is the term. The second FC is precise highlighting location.
675+ | PProvider (Docstring (Either Err t)) SyntaxInfo FC FC (ProvideWhat' t) Name -- ^ Type provider. The first t is the type, the second is the term. The second FC is precise highlighting location.
676676 | PTransform FC Bool t t -- ^ Source-to-source transformation rule. If
677677 -- bool is True, lhs and rhs must be convertible
678+ | PRunElabDecl FC t
678679 deriving Functor
679680{-!
680681deriving instance Binary PDecl'