ghc-7.10.0.20141222: The GHC API

Safe HaskellNone
LanguageHaskell2010

HsImpExp

Synopsis

Documentation

type LImportDecl name Source

Arguments

 = Located (ImportDecl name)

When in a list this may have

data ImportDecl name Source

A single Haskell import declaration.

Constructors

ImportDecl

AnnKeywordIds

Fields

ideclName :: Located ModuleName

Module name.

ideclPkgQual :: Maybe FastString

Package qualifier.

ideclSource :: Bool

True = {-# SOURCE #-} import

ideclSafe :: Bool

True => safe import

ideclQualified :: Bool

True => qualified

ideclImplicit :: Bool

True => implicit import (of Prelude)

ideclAs :: Maybe ModuleName

as Module

ideclHiding :: Maybe (Bool, Located [LIE name])

(True => hiding, names)

Instances

Data name => Data (ImportDecl name) 
(OutputableBndr name, HasOccName name) => Outputable (ImportDecl name) 
Typeable (* -> *) ImportDecl 

type LIE name Source

Arguments

 = Located (IE name)

When in a list this may have

data IE name Source

Imported or exported entity.

Constructors

IEVar (Located name)
IEThingAbs name

Class/Type (can't tell) - AnnKeywordIds : AnnPattern, AnnType,AnnVal

IEThingAll (Located name)

ClassType plus all methodsconstructors

IEThingWith (Located name) [Located name]

ClassType plus some methodsconstructors - AnnKeywordIds : AnnOpen, AnnClose, AnnComma, AnnType

IEModuleContents (Located ModuleName)

(Export Only)

IEGroup Int HsDocString

Doc section heading

IEDoc HsDocString

Some documentation

IEDocNamed String

Reference to named doc

Instances

Eq name => Eq (IE name) 
Data name => Data (IE name) 
(HasOccName name, OutputableBndr name) => Outputable (IE name) 
Typeable (* -> *) IE 

ieName :: IE name -> name Source

ieNames :: IE a -> [a] Source

pprImpExp :: (HasOccName name, OutputableBndr name) => name -> SDoc Source