@@ -622,41 +622,41 @@ type ProvideWhat = ProvideWhat' PTerm
622-- datatypes and typeclasses.
622-- datatypes and typeclasses.
623data PDecl' t
623data PDecl' t
624 = PFix FC Fixity [String] -- ^ Fixity declaration
624 = 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)
626 | PPostulate Bool -- external def if true
626 | 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
628 | PClauses FC FnOpts Name [PClause' t] -- ^ Pattern clause
628 | PClauses FC FnOpts Name [PClause' t] -- ^ Pattern clause
629 | PCAF FC Name t -- ^ Top level constant
629 | 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.
631 | PParams FC [(Name, t)] [PDecl' t] -- ^ Params block
631 | PParams FC [(Name, t)] [PDecl' t] -- ^ Params block
632 | PNamespace String FC [PDecl' t]
632 | PNamespace String FC [PDecl' t]
633 -- ^ New namespace, where FC is accurate location of the
633 -- ^ New namespace, where FC is accurate location of the
634 -- namespace in the file
634 -- namespace in the file
635− | PRecord (Docstring (Either Err PTerm)) SyntaxInfo FC DataOpts
635+ | PRecord (Docstring (Either Err t)) SyntaxInfo FC DataOpts
636 Name -- Record name
636 Name -- Record name
637 FC -- Record name precise location
637 FC -- Record name precise location
638 [(Name, FC, Plicity, t)] -- Parameters, where FC is precise name span
638 [(Name, FC, Plicity, t)] -- Parameters, where FC is precise name span
639− [(Name, Docstring (Either Err PTerm))] -- Param Docs
639+ [(Name, Docstring (Either Err t))] -- Param Docs
640− [((Maybe (Name, FC)), Plicity, t, Maybe (Docstring (Either Err PTerm)))] -- Fields
640+ [((Maybe (Name, FC)), Plicity, t, Maybe (Docstring (Either Err t)))] -- Fields
641 (Maybe (Name, FC)) -- Optional constructor name and location
641 (Maybe (Name, FC)) -- Optional constructor name and location
642− (Docstring (Either Err PTerm)) -- Constructor doc
642+ (Docstring (Either Err t)) -- Constructor doc
643 SyntaxInfo -- Constructor SyntaxInfo
643 SyntaxInfo -- Constructor SyntaxInfo
644 -- ^ Record declaration
644 -- ^ Record declaration
645− | PClass (Docstring (Either Err PTerm)) SyntaxInfo FC
645+ | PClass (Docstring (Either Err t)) SyntaxInfo FC
646 [(Name, t)] -- constraints
646 [(Name, t)] -- constraints
647 Name -- class name
647 Name -- class name
648 FC -- accurate location of class name
648 FC -- accurate location of class name
649 [(Name, FC, t)] -- parameters and precise locations
649 [(Name, FC, t)] -- parameters and precise locations
650− [(Name, Docstring (Either Err PTerm))] -- parameter docstrings
650+ [(Name, Docstring (Either Err t))] -- parameter docstrings
651 [(Name, FC)] -- determining parameters and precise locations
651 [(Name, FC)] -- determining parameters and precise locations
652 [PDecl' t] -- declarations
652 [PDecl' t] -- declarations
653 (Maybe (Name, FC)) -- instance constructor name and location
653 (Maybe (Name, FC)) -- instance constructor name and location
654− (Docstring (Either Err PTerm)) -- instance constructor docs
654+ (Docstring (Either Err t)) -- instance constructor docs
655 -- ^ Type class: arguments are documentation, syntax info, source location, constraints,
655 -- ^ Type class: arguments are documentation, syntax info, source location, constraints,
656 -- class name, class name location, parameters, method declarations, optional constructor name
656 -- class name, class name location, parameters, method declarations, optional constructor name
657 | PInstance
657 | PInstance
658− (Docstring (Either Err PTerm)) -- Instance docs
658+ (Docstring (Either Err t)) -- Instance docs
659− [(Name, Docstring (Either Err PTerm))] -- Parameter docs
659+ [(Name, Docstring (Either Err t))] -- Parameter docs
660 SyntaxInfo
660 SyntaxInfo
661 FC [(Name, t)] -- constraints
661 FC [(Name, t)] -- constraints
662 Name -- class
662 Name -- class
@@ -672,9 +672,10 @@ data PDecl' t
672 | PSyntax FC Syntax -- ^ Syntax definition
672 | PSyntax FC Syntax -- ^ Syntax definition
673 | PMutual FC [PDecl' t] -- ^ Mutual block
673 | PMutual FC [PDecl' t] -- ^ Mutual block
674 | PDirective Directive -- ^ Compiler directive.
674 | 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.
676 | PTransform FC Bool t t -- ^ Source-to-source transformation rule. If
676 | PTransform FC Bool t t -- ^ Source-to-source transformation rule. If
677 -- bool is True, lhs and rhs must be convertible
677 -- bool is True, lhs and rhs must be convertible
678 deriving Functor
679 deriving Functor
680deriving instance Binary PDecl'
681deriving instance Binary PDecl'