ghc-lib-parser-8.10.2.20200916: The GHC API, decoupled from GHC versions

Safe HaskellNone
LanguageHaskell2010

BkpSyn

Contents

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.