HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleghc-9.10.3GHC2021

Language.Haskell.Syntax.ImpExp

  • 11 types
  • Packageghc-9.10.3
  • Exports11
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceImpExp.hs
datadata IsBootInterface
#

Indicates whether a module name is referring to a boot interface (hs-boot file) or regular module (hs file). We need to treat boot modules specially when building compilation graphs, since they break cycles. Regular source files and signature files are treated equivalently.

Instances5Eq, Data, Ord, Show, Binary
datadata ImportDecl pass
#

Import Declaration

A single Haskell import declaration.

Constructors

Instances6Data, Outputable, ToHie, Anno
typetype LIE pass = XRec pass (IE pass)
#

Located Import or Export

typetype ExportDoc pass = LHsDoc pass
#

A docstring attached to an export list item.

datadata IE pass
#

Imported or exported entity.

Constructors

Instances13Eq, Data, Outputable, ToHie, HasHaddock, Anno, …
  • Eq (IE GhcPs)Defined in ghc-9.10.3 · GHC.Hs.Instances · orphan
  • Eq (IE GhcRn)Defined in ghc-9.10.3 · GHC.Hs.Instances · orphan
  • Eq (IE GhcTc)Defined in ghc-9.10.3 · GHC.Hs.Instances · orphan
  • Data (IE GhcPs)Defined in ghc-9.10.3 · GHC.Hs.Instances · orphan
  • Data (IE GhcRn)Defined in ghc-9.10.3 · GHC.Hs.Instances · orphan
  • Data (IE GhcTc)Defined in ghc-9.10.3 · GHC.Hs.Instances · orphan
  • OutputableBndrId p => Outputable (IE (GhcPass p))Defined in ghc-9.10.3 · GHC.Hs.ImpExp · orphan
  • ToHie (IEContext (LocatedA (IE GhcRn)))Defined in ghc-9.10.3 · GHC.Iface.Ext.Ast
  • HasHaddock (LocatedA (IE GhcPs))Defined in ghc-9.10.3 · GHC.Parser.PostProcess.Haddock
  • HasHaddock (LocatedL [LocatedA (IE GhcPs)])Defined in ghc-9.10.3 · GHC.Parser.PostProcess.Haddock

    Only 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.

  • type Anno (LocatedA (IE (GhcPass p))) = SrcSpanAnnADefined in ghc-9.10.3 · GHC.Hs.ImpExp · orphan
  • type Anno (IE (GhcPass p)) = SrcSpanAnnADefined in ghc-9.10.3 · GHC.Hs.ImpExp · orphan
  • type Anno [LocatedA (IE (GhcPass p))] = SrcSpanAnnLDefined in ghc-9.10.3 · GHC.Hs.ImpExp · orphan
datadata IEWildcard
#

Wildcard in an import or export sublist, like the .. in import Mod ( T(Mk1, Mk2, ..) ).

Constructors

  • NoIEWildcard

    no wildcard in this list

  • IEWildcard Int

    wildcard after the given # of items in this list The Int is in the range [0..n], where n is the length of the list.

Instances2Eq, Data
  • Eq IEWildcardDefined in ghc-9.10.3 · Language.Haskell.Syntax.ImpExp
  • Data IEWildcardDefined in ghc-9.10.3 · Language.Haskell.Syntax.ImpExp
datadata IEWrappedName p
#

A name in an import or export specification which may have adornments. Used primarily for accurate pretty printing of ParsedSource, and API Annotation placement. The GHC.Parser.Annotation is the location of the adornment in the original source.

Constructors

Instances11Eq, Data, Outputable, OutputableBndr, HasOccName, ToHie, …