Moduleghc-9.14.1GHC2021
GHC.Hs.ImpExp
- 4 types
- 14 values
- Packageghc-9.14.1
- 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-9.14.1 · GHC.Hs.ImpExpNoAnn EpAnnImportDeclDefined in ghc-9.14.1 · GHC.Hs.ImpExp
Constructors
EpAnnLevelSplice (EpToken"splice"
)EpAnnLevelQuote (EpToken"quote"
)
Instances2Data, HasLoc
Data EpAnnLevelDefined in ghc-9.14.1 · GHC.Hs.ImpExpHasLoc EpAnnLevelDefined in ghc-9.14.1 · 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-9.14.1 · 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))