Moduleghc-10.0.0.20260917GHC2024
GHC.Hs.ImpExp
- 6 types
- 14 values
- Packageghc-10.0.0.20260917
- Exports20
- LanguageGHC2024
- 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-10.0.0.20260917 · GHC.Hs.ImpExpNoAnn EpAnnImportDeclDefined in ghc-10.0.0.20260917 · GHC.Hs.ImpExp
Constructors
EpAnnLevelSplice (EpToken"splice"
)EpAnnLevelQuote (EpToken"quote"
)
Instances2Data, HasLoc
Data EpAnnLevelDefined in ghc-10.0.0.20260917 · GHC.Hs.ImpExpHasLoc EpAnnLevelDefined in ghc-10.0.0.20260917 · GHC.Hs.ImpExp
Constructors
IEThingAllExtieta_warning :: Maybe (LWarningTxt pass)Export deprecation annotation. Always Nothing for import lists, since export deprecation can only be used in exports.
ieta_ns_spec :: NamespaceSpecifierSee #26678 "NamespaceSpecifier in extension fields"
ieta_tok_lpar :: EpToken"("
ieta_tok_wc :: EpToken".."
ieta_tok_rpar :: EpToken")"
Instances6Eq, Data
Eq (IEThingAllExt GhcPs)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanEq (IEThingAllExt GhcRn)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanEq (IEThingAllExt GhcTc)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanData (IEThingAllExt GhcPs)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanData (IEThingAllExt GhcRn)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanData (IEThingAllExt GhcTc)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphan
Constructors
IEWholeNamespaceExtiewn_warning :: Maybe (LWarningTxt pass)iewn_ns_spec :: NamespaceSpecifierSee #26678 "NamespaceSpecifier in extension fields"
iewn_tok_wc :: EpToken".."
iewn_names :: [IdP pass]The list
[Name]stores the names that the..expands to; it determines whether to emit-Wunused-importsand/or-Wdodgy-imports
Instances6Eq, Data
Eq (IEWholeNamespaceExt GhcPs)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanEq (IEWholeNamespaceExt GhcRn)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanEq (IEWholeNamespaceExt GhcTc)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanData (IEWholeNamespaceExt GhcPs)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanData (IEWholeNamespaceExt GhcRn)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphanData (IEWholeNamespaceExt GhcTc)Defined in ghc-10.0.0.20260917 · GHC.Hs.Instances · orphan
Constructors
XImportDeclPassideclAnn :: EpAnn EpAnnImportDeclideclSourceText :: SourceTextideclGenerated :: BoolSee Note [Generated imports]
Instances1Data
Data XImportDeclPassDefined in ghc-10.0.0.20260917 · 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))