@@ -675,7 +675,8 @@ data PDecl' t
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.
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− | PRunElabDecl FC t
678+ | PRunElabDecl FC t [String] -- ^ FC is decl-level, for errors, and
679+ -- Strings represent the namespace
679 deriving Functor
680 deriving Functor
681deriving instance Binary PDecl'
682deriving instance Binary PDecl'
@@ -841,8 +842,8 @@ mapPDeclFC f g (PProvider doc syn fc nfc what n) =
841 PProvider doc syn (f fc) (g nfc) (fmap (mapPTermFC f g) what) n
842 PProvider doc syn (f fc) (g nfc) (fmap (mapPTermFC f g) what) n
842mapPDeclFC f g (PTransform fc safe l r) =
843mapPDeclFC f g (PTransform fc safe l r) =
843 PTransform (f fc) safe (mapPTermFC f g l) (mapPTermFC f g r)
844 PTransform (f fc) safe (mapPTermFC f g l) (mapPTermFC f g r)
844−mapPDeclFC f g (PRunElabDecl fc script) =
845+mapPDeclFC f g (PRunElabDecl fc script ns) =
845− PRunElabDecl (f fc) (mapPTermFC f g script)
846+ PRunElabDecl (f fc) (mapPTermFC f g script) ns
847-- | Get all the names declared in a declaration
848-- | Get all the names declared in a declaration
848declared :: PDecl -> [Name]
849declared :: PDecl -> [Name]