A token stored in the syntax tree. For example, when parsing a
let-expression, we store EpToken "let" and EpToken "in".
The locations of those tokens can be used to faithfully reproduce
(exactprint) the original program text.
Constructors
Instances6Eq, Data, HasLoc, NoAnn, Outputable, HasHaddock
Eq (EpToken tok)Defined in ghc-10.0.0.20260917 · GHC.Parser.AnnotationKnownSymbol tok => Data (EpToken tok)Defined in ghc-10.0.0.20260917 · GHC.Parser.AnnotationHasLoc (EpToken tok)Defined in ghc-10.0.0.20260917 · GHC.Parser.AnnotationNoAnn (EpToken s)Defined in ghc-10.0.0.20260917 · GHC.Parser.AnnotationKnownSymbol tok => Outputable (EpToken tok)Defined in ghc-10.0.0.20260917 · GHC.Parser.AnnotationHasHaddock (LocatedLI [LocatedA (IE GhcPs)])Defined in ghc-10.0.0.20260917 · GHC.Parser.PostProcess.HaddockOnly for module exports, not module imports.
module M (a, b, c) where -- use on this [LIE GhcPs] import I (a, b, c) -- do not use here!
Imports cannot have documentation comments anyway.