Moduleghc-lib-parser-9.14.1.20251220GHC2021
GHC.Hs.ImpExp
Synopsis
- value exportDocstring
- value ieDeprecation
- value ieLIEWrappedName
- value ieLWrappedName
- value ieName
- value ieNames
- value ieWrappedLName
- value ieWrappedName
- value isImportDeclQualified
- value lieWrappedName
- value pprImpExp
- value replaceLWrappedName
- value replaceWrappedName
- value simpleImportDecl
- data EpAnnImportDecl
- data EpAnnLevel
- type IEThingWithAnns
- data XImportDeclPass
- Packageghc-lib-parser-9.14.1.20251220
- Exports18
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceImpExp.hs
Convenience function to answer the question if an import decl. is qualified.
Constructors
EpAnnImportDeclimportDeclAnnImport :: EpToken"import"
The location of the
importkeywordimportDeclAnnPragma :: Maybe (EpaLocation, EpToken"#-}"
)The locations of
{-# SOURCEand#-}respectivelyimportDeclAnnSafe :: Maybe (EpToken"safe"
)The location of the
safekeywordimportDeclAnnLevel :: Maybe EpAnnLevelThe location of the
spliceorquotekeywordimportDeclAnnQualified :: Maybe (EpToken"qualified"
)The location of the
qualifiedkeywordimportDeclAnnPackage :: Maybe EpaLocationThe location of the package name (when using
-XPackageImports)importDeclAnnAs :: Maybe (EpToken"as"
)The location of the
askeyword
Instances2Data, NoAnn
Data EpAnnImportDeclDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.ImpExpNoAnn EpAnnImportDeclDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.ImpExp
Constructors
EpAnnLevelSplice (EpToken"splice"
)EpAnnLevelQuote (EpToken"quote"
)
Instances2Data, HasLoc
Data EpAnnLevelDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.ImpExpHasLoc EpAnnLevelDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.ImpExp
Constructors
XImportDeclPassideclAnn :: EpAnn EpAnnImportDeclideclSourceText :: SourceTextideclImplicit :: BoolGHC generates an ImportDecl to represent the invisible `import Prelude` that appears in any file that omits `import Prelude`, setting this field to indicate that the import doesn't appear in the original source. True => implicit import (of Prelude)
Instances1Data
Data XImportDeclPassDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Hs.ImpExp
Orphan instances
11 instancesEq (IEWrappedName GhcPs)Eq (IEWrappedName GhcRn)Eq (IEWrappedName GhcTc)Data (IEWrappedName GhcPs)Data (IEWrappedName GhcRn)Data (IEWrappedName GhcTc)OutputableBndrId p => Outputable (IE (GhcPass p))OutputableBndrId p => Outputable (IEWrappedName (GhcPass p))(OutputableBndrId p, Outputable (Anno (IE (GhcPass p))), Outputable (ImportDeclPkgQual (GhcPass p))) => Outputable (ImportDecl (GhcPass p))OutputableBndrId p => OutputableBndr (IEWrappedName (GhcPass p))(HasOccName (IdP (GhcPass p)), OutputableBndrId p) => HasOccName (IEWrappedName (GhcPass p))