Constructors
HsUnitId (Located n) [LHsModuleSubst n]
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Moduleghc-9.10.3GHC2021
This is the syntax for bkp files which are parsed in 'ghc --backpack' mode. This syntax is used purely for testing purposes.
HsUnitId (Located n) [LHsModuleSubst n]Outputable HsComponentIdDefined in ghc-9.10.3 · GHC.Driver.Backpack.SyntaxTop level unit declaration in a Backpack file.
HsUnithsunitName :: Located nhsunitBody :: [LHsUnitDecl n]A declaration in a package, e.g. a module or signature definition, or an include.
An include of another unit
IncludeDeclidUnitId :: LHsUnitId nidModRenaming :: Maybe [LRenaming]idSignatureInclude :: BoolIs this a dependency signature include? If so,
we don't compile this include when we instantiate this
unit (as there should not be any modules brought into
scope.)
Rename a module from one name to another. The identity renaming means that the module should be brought into scope.