Given two possible located qualified tokens, compute a style
(in a conforming Haskell program only one of the two can be not
Nothing). This is called from GHC.Parser.
Moduleghc-9.10.3GHC2021
GHC.Hs.ImpExp
- 2 types
- 14 values
- Packageghc-9.10.3
- Exports16
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceImpExp.hs
Convenience function to answer the question if an import decl. is qualified.
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.10.3 · GHC.Hs.ImpExp
Instances2Data, NoAnn
Data EpAnnImportDeclDefined in ghc-9.10.3 · GHC.Hs.ImpExpNoAnn EpAnnImportDeclDefined in ghc-9.10.3 · 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))