ghc-9.0.0.20201227: The GHC API
Safe HaskellNone
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 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.