ghc-8.2.1.20171108: The GHC API

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 HsDeclType Source #

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

Constructors

ModuleD 
SignatureD 

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.