@@ -607,7 +607,7 @@ data PDecl' t
607607 = PFix FC Fixity [String] -- ^ Fixity declaration
608608 | PTy (Docstring (Either Err PTerm)) [(Name, Docstring (Either Err PTerm))] SyntaxInfo FC FnOpts Name FC t -- ^ Type declaration (last FC is precise name location)
609609 | PPostulate Bool -- external def if true
610− (Docstring (Either Err PTerm)) SyntaxInfo FC FnOpts Name t -- ^ Postulate
610+ (Docstring (Either Err PTerm)) SyntaxInfo FC FC FnOpts Name t -- ^ Postulate, second FC is precise name location
611611 | PClauses FC FnOpts Name [PClause' t] -- ^ Pattern clause
612612 | PCAF FC Name t -- ^ Top level constant
613613 | PData (Docstring (Either Err PTerm)) [(Name, Docstring (Either Err PTerm))] SyntaxInfo FC DataOpts (PData' t) -- ^ Data declaration.
@@ -655,7 +655,7 @@ data PDecl' t
655655 | PSyntax FC Syntax -- ^ Syntax definition
656656 | PMutual FC [PDecl' t] -- ^ Mutual block
657657 | PDirective Directive -- ^ Compiler directive.
658− | PProvider (Docstring (Either Err PTerm)) SyntaxInfo FC (ProvideWhat' t) Name -- ^ Type provider. The first t is the type, the second is the term
658+ | 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.
659659 | PTransform FC Bool t t -- ^ Source-to-source transformation rule. If
660660 -- bool is True, lhs and rhs must be convertible
661661 deriving Functor
@@ -750,7 +750,7 @@ type PClause = PClause' PTerm
750750declared :: PDecl -> [Name]
751751declared (PFix _ _ _) = []
752752declared (PTy _ _ _ _ _ n fc t) = [n]
753−declared (PPostulate _ _ _ _ _ n t) = [n]
753+declared (PPostulate _ _ _ _ _ _ n t) = [n]
754754declared (PClauses _ _ n _) = [] -- not a declaration
755755declared (PCAF _ n _) = [n]
756756declared (PData _ _ _ _ _ (PDatadecl n _ _ ts)) = n : map fstt ts
@@ -771,7 +771,7 @@ declared _ = []
771771tldeclared :: PDecl -> [Name]
772772tldeclared (PFix _ _ _) = []
773773tldeclared (PTy _ _ _ _ _ n _ t) = [n]
774−tldeclared (PPostulate _ _ _ _ _ n t) = [n]
774+tldeclared (PPostulate _ _ _ _ _ _ n t) = [n]
775775tldeclared (PClauses _ _ n _) = [] -- not a declaration
776776tldeclared (PRecord _ _ _ _ n _ _ _ _ cn _ _) = n : map fst (maybeToList cn)
777777tldeclared (PData _ _ _ _ _ (PDatadecl n _ _ ts)) = n : map fstt ts
@@ -786,7 +786,7 @@ tldeclared _ = []
786786defined :: PDecl -> [Name]
787787defined (PFix _ _ _) = []
788788defined (PTy _ _ _ _ _ n _ t) = []
789−defined (PPostulate _ _ _ _ _ n t) = []
789+defined (PPostulate _ _ _ _ _ _ n t) = []
790790defined (PClauses _ _ n _) = [n] -- not a declaration
791791defined (PCAF _ n _) = [n]
792792defined (PData _ _ _ _ _ (PDatadecl n _ _ ts)) = n : map fstt ts