ghc-9.4.0.20220721: The GHC API
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Driver.Backpack.Syntax

Description

This is the syntax for bkp files which are parsed in 'ghc --backpack' mode. This syntax is used purely for testing purposes.

Synopsis

Backpack abstract syntax

data HsUnitId n Source #

Constructors

HsUnitId (Located n) [LHsModuleSubst n] 

data HsComponentId Source #

Instances

Instances details
Outputable HsComponentId Source # 
Instance details

Defined in GHC.Driver.Backpack.Syntax

data HsUnit n Source #

Top level unit declaration in a Backpack file.

Constructors

HsUnit 

data HsUnitDecl n Source #

A declaration in a package, e.g. a module or signature definition, or an include.

data IncludeDecl n Source #

An include of another unit

Constructors

IncludeDecl 

Fields

data Renaming Source #

Rename a module from one name to another. The identity renaming means that the module should be brought into scope.